Skip to content

Commit a17fee0

Browse files
committed
added %spc% replace for spaces
1 parent 08dea93 commit a17fee0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v_list_sys_config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ json_list_conf() {
2020
(( ++i))
2121
key=${str%%=*}
2222
value=${str#*=}
23-
23+
value=${value//%spc%/ }
2424
if [ "$i" -lt "$lines" ]; then
2525
echo -e "\t\t\"$key\": \"${value//\'/}\","
2626
else
@@ -35,6 +35,7 @@ shell_list_conf() {
3535
for str in $(cat $V_CONF/vesta.conf); do
3636
key=${str%%=*}
3737
value=${str#*=}
38+
value=${value//%spc%/ }
3839
echo "$key: ${value//\'/}"
3940
done
4041
}

0 commit comments

Comments
 (0)