mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
added %spc% replace for spaces
This commit is contained in:
parent
08dea938b5
commit
a17fee0f4f
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,7 @@ json_list_conf() {
|
||||||
(( ++i))
|
(( ++i))
|
||||||
key=${str%%=*}
|
key=${str%%=*}
|
||||||
value=${str#*=}
|
value=${str#*=}
|
||||||
|
value=${value//%spc%/ }
|
||||||
if [ "$i" -lt "$lines" ]; then
|
if [ "$i" -lt "$lines" ]; then
|
||||||
echo -e "\t\t\"$key\": \"${value//\'/}\","
|
echo -e "\t\t\"$key\": \"${value//\'/}\","
|
||||||
else
|
else
|
||||||
|
@ -35,6 +35,7 @@ shell_list_conf() {
|
||||||
for str in $(cat $V_CONF/vesta.conf); do
|
for str in $(cat $V_CONF/vesta.conf); do
|
||||||
key=${str%%=*}
|
key=${str%%=*}
|
||||||
value=${str#*=}
|
value=${str#*=}
|
||||||
|
value=${value//%spc%/ }
|
||||||
echo "$key: ${value//\'/}"
|
echo "$key: ${value//\'/}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue