aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-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 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"
}