Browse Source

Merge pull request #18 from Neilpang/dev

fix issue: sed contains "&" sign
master
Neil 9 years ago
parent
commit
5a89ec277a
  1. 3
      le.sh

3
le.sh

@ -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

Loading…
Cancel
Save