mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-23 06:42:34 +00:00
installer: fix writing new config vars with spaces
This commit is contained in:
parent
1c162c0639
commit
c9b9fefd4b
@ -500,6 +500,7 @@ write_config_var()
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# var does not exist in config. add it
|
# var does not exist in config. add it
|
||||||
|
contains "$M" " " && M="\"$M\""
|
||||||
if [ -n "$M" ]; then
|
if [ -n "$M" ]; then
|
||||||
echo "$1=$M" >>"$ZAPRET_CONFIG"
|
echo "$1=$M" >>"$ZAPRET_CONFIG"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user