From a17fee0f4f626cafdaff59e588eeb8400e3a4c25 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 14 Nov 2011 15:13:41 +0200 Subject: [PATCH] added %spc% replace for spaces --- bin/v_list_sys_config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/v_list_sys_config b/bin/v_list_sys_config index 5ed6feb8..48dca4de 100755 --- a/bin/v_list_sys_config +++ b/bin/v_list_sys_config @@ -20,7 +20,7 @@ json_list_conf() { (( ++i)) key=${str%%=*} value=${str#*=} - + value=${value//%spc%/ } if [ "$i" -lt "$lines" ]; then echo -e "\t\t\"$key\": \"${value//\'/}\"," else @@ -35,6 +35,7 @@ shell_list_conf() { for str in $(cat $V_CONF/vesta.conf); do key=${str%%=*} value=${str#*=} + value=${value//%spc%/ } echo "$key: ${value//\'/}" done }