From 0f31ff1f249ccf49d5c063997d501115c4c2d41d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 15 Nov 2014 22:11:55 -0500 Subject: [PATCH] Add a set of spaces to prefix config variables when setting them --- plugins/config/commands | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/config/commands b/plugins/config/commands index cc1b948c1..6da21d4a5 100755 --- a/plugins/config/commands +++ b/plugins/config/commands @@ -26,6 +26,7 @@ fi config_styled_hash () { vars="$1" + prefix="$2" longest="" while read -r word; do @@ -45,7 +46,7 @@ config_styled_hash () { zeros="$zeros " num_zeros=$(($num_zeros - 1)) done - echo "$KEY:$zeros$VALUE" + echo "$prefix$KEY:$zeros$VALUE" done <<< "$vars" } @@ -147,7 +148,7 @@ ${var}" if [ $RESTART_APP ]; then echo "-----> Setting config vars and restarting $APP" - config_styled_hash "$ENV_ADD" + config_styled_hash "$ENV_ADD" " " config_write "$ENV_TEMP" fi