Browse Source

Merge pull request #4259 from Mon-ius/master

fix a issue, when profile not end with newline
pull/4349/head
neil 2 years ago
committed by GitHub
parent
commit
be477d7ae3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      acme.sh

3
acme.sh

@ -2257,6 +2257,9 @@ _setopt() {
if [ ! -f "$__conf" ]; then
touch "$__conf"
fi
if [ -n "$(tail -c 1 <"$__conf")" ]; then
echo >>"$__conf"
fi
if grep -n "^$__opt$__sep" "$__conf" >/dev/null; then
_debug3 OK

Loading…
Cancel
Save