From 9523fff65810bf8e6f987076fcc47d7f392d2aa1 Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Mon, 26 Aug 2019 11:20:44 +0200 Subject: [PATCH] Fix op_checkoccurencename() in web-add.sh Ensure that we can add foo.net while having www.foo.net somewhere in out config files --- scripts/web-add.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/web-add.sh b/scripts/web-add.sh index 811314d..3d778d0 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -1075,7 +1075,7 @@ op_checkoccurencename() { fi done - echo "$servernames" "$aliases" | grep -w "$name" + echo "$servernames" "$aliases" | grep -wE "\s$name" else usage fi