aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-09-26 14:24:06 +0000
committerFlorin Grad <florin@mandriva.com>2001-09-26 14:24:06 +0000
commit44c9536a2ce3e32eb69a4c955ba0eb006d16a739 (patch)
tree804228ac58807de6abfe100b35badd9010303a25
parent8d7d800c38ead4e74763fa33bd38aa59c95b63f3 (diff)
downloadmsec-44c9536a2ce3e32eb69a4c955ba0eb006d16a739.tar
msec-44c9536a2ce3e32eb69a4c955ba0eb006d16a739.tar.gz
msec-44c9536a2ce3e32eb69a4c955ba0eb006d16a739.tar.bz2
msec-44c9536a2ce3e32eb69a4c955ba0eb006d16a739.tar.xz
msec-44c9536a2ce3e32eb69a4c955ba0eb006d16a739.zip
remove the -E option in the AddRules grep
-rw-r--r--init-sh/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index 4ddc642..544442b 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -33,7 +33,7 @@ AddRules() {
echo "Modifying config in ${file}..."
fi
- if ! grep -Eqx "^${string}" ${file}; then
+ if ! grep -qx "^${string}" ${file}; then
echo -e "${COMMENT}" >> ${file};
echo -e "${string}" >> ${file};
fi