installer: fix writing new config vars with spaces

This commit is contained in:
bol-van 2024-09-20 10:10:39 +03:00
parent 1c162c0639
commit c9b9fefd4b

View File

@ -500,6 +500,7 @@ write_config_var()
fi
else
# var does not exist in config. add it
contains "$M" " " && M="\"$M\""
if [ -n "$M" ]; then
echo "$1=$M" >>"$ZAPRET_CONFIG"
else