aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r--init-sh/lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index 81c62c0..262b1db 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -47,7 +47,7 @@ AddRules () {
echo "Modifying config in ${file}..."
fi
- if ! grep -qx "${string}" ${file}; then
+ if ! grep -Eqx "^${string}" ${file}; then
echo "${COMMENT}" >> ${file};
echo "${string}" >> ${file};
fi
@@ -60,7 +60,7 @@ CleanRules() {
file=$1
ctrl=0
- echo -en "\t- Cleaning msec appended line in ${file} : "
+ echo -en "\t- Cleaning msec appended line in ${file} : "
mv -f ${file} /tmp/secure.tmp
touch ${file}