aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init-sh/lib.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index 77b63a4..8afefdb 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -94,7 +94,7 @@ OLD_CleanRules() {
CleanRules() {
echo -en "\t- Cleaning msec appended line in $1 : "
- perl -ni -e '$_ eq "$ENV{COMMENT}\n" ... //' $1
+ perl -ni -e '$_ eq "$ENV{COMMENT}\n" ... // or print' $1
echo "done."
}
@@ -352,8 +352,6 @@ if [[ -f /etc/profile.d/msec.sh && -f /etc/profile.d/msec.csh ]]; then
CleanRules /etc/profile.d/msec.sh
CleanRules /etc/profile.d/msec.csh
else
- touch /etc/profile.d/msec.sh
- touch /etc/profile.d/msec.csh
chmod 755 /etc/profile.d/msec.sh
chmod 755 /etc/profile.d/msec.csh
fi