1
0
mirror of https://github.com/hiskaNG/acme.sh.git synced 2026-08-17 03:13:00 +00:00

Merge pull request #18 from Neilpang/dev

fix issue: sed contains "&" sign
This commit is contained in:
Neil
2016-01-07 22:50:48 +08:00
+3
View File
@@ -196,6 +196,9 @@ _setopt() {
fi
if grep -H -n "^$__opt$__sep" "$__conf" > /dev/null ; then
_debug OK
if [[ "$__val" == *"&"* ]] ; then
__val="$(echo $__val | sed 's/&/\\&/g')"
fi
sed -i "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" "$__conf"
else
_debug APP