diff options
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r-- | init-sh/lib.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh index 20cfe96..f62faac 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -46,8 +46,8 @@ AddRules() { AddBegRules() { echo "Modifying config in ${2}..." - export VAL=$2 - perl -pi -e '/^#/ or /^$/ or $m++ or print "$ENV{COMMENT}\n$ENV{VAL}\n\n"' $1 + export VAL=$1 + perl -pi -e '/^#/ or /^$/ or $m++ or print "$ENV{COMMENT}\n$ENV{VAL}\n\n"' $2 echo -e "done.\n" } |