Explorar el Código

added %spc% replace for spaces

Serghey Rodin hace 14 años
padre
commit
a17fee0f4f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      bin/v_list_sys_config

+ 2 - 1
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
 }