From 7e5a2a889cfdc540b53484a6100e7aac88b368ae Mon Sep 17 00:00:00 2001 From: Florin Grad Date: Sat, 29 Sep 2001 13:42:25 +0000 Subject: add the E in grep in AddRules --- init-sh/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-sh/lib.sh b/init-sh/lib.sh index 544442b..287790e 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -33,7 +33,7 @@ AddRules() { echo "Modifying config in ${file}..." fi - if ! grep -qx "^${string}" ${file}; then + if ! grep -qEx "^${string}" ${file}; then echo -e "${COMMENT}" >> ${file}; echo -e "${string}" >> ${file}; fi -- cgit v1.2.1