diff options
Diffstat (limited to 'init-sh/lib.sh')
-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" } |