aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/lib.sh
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2001-09-29 13:42:25 +0000
committerFlorin Grad <florin@mandriva.com>2001-09-29 13:42:25 +0000
commit7e5a2a889cfdc540b53484a6100e7aac88b368ae (patch)
tree8502ff13af81ffb428617b1f41991576036fffce /init-sh/lib.sh
parentd8cf4c2388a0afc226ddd6aa44814b68a9852166 (diff)
downloadmsec-7e5a2a889cfdc540b53484a6100e7aac88b368ae.tar
msec-7e5a2a889cfdc540b53484a6100e7aac88b368ae.tar.gz
msec-7e5a2a889cfdc540b53484a6100e7aac88b368ae.tar.bz2
msec-7e5a2a889cfdc540b53484a6100e7aac88b368ae.tar.xz
msec-7e5a2a889cfdc540b53484a6100e7aac88b368ae.zip
add the E in grep in AddRules
Diffstat (limited to 'init-sh/lib.sh')
-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 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