diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-12-19 22:14:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-12-19 22:14:23 +0000 |
commit | 4080e206cd66db99a8cc6c653a690291adeaee9e (patch) | |
tree | 430131757a3b1acf1ec6a5d62d7b14645729df18 | |
parent | 039ce82b67d1ce924ef3fe588757e761256b58a1 (diff) | |
download | msec-4080e206cd66db99a8cc6c653a690291adeaee9e.tar msec-4080e206cd66db99a8cc6c653a690291adeaee9e.tar.gz msec-4080e206cd66db99a8cc6c653a690291adeaee9e.tar.bz2 msec-4080e206cd66db99a8cc6c653a690291adeaee9e.tar.xz msec-4080e206cd66db99a8cc6c653a690291adeaee9e.zip |
*** empty log message ***
-rw-r--r-- | init-sh/lib.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh index 6a613e9..1070c3d 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -46,7 +46,8 @@ AddRules() { AddBegRules() { echo "Modifying config in ${2}..." - perl -pe -i '/^#/ or /^$/ or $m++ or print "$ENV{COMMENT}\n@ARGV\n\n"' $@ + export VAL=$2 + perl -pe -i '/^#/ or /^$/ or $m++ or print "$ENV{COMMENT}\n$ENV{VAL}\n\n"' $1 echo -e "done.\n" } |