mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-10 00:11:45 +00:00
Merge pull request #4259 from Mon-ius/master
fix a issue, when profile not end with newline
This commit is contained in:
commit
be477d7ae3
3
acme.sh
3
acme.sh
@ -2257,6 +2257,9 @@ _setopt() {
|
|||||||
if [ ! -f "$__conf" ]; then
|
if [ ! -f "$__conf" ]; then
|
||||||
touch "$__conf"
|
touch "$__conf"
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$(tail -c 1 <"$__conf")" ]; then
|
||||||
|
echo >>"$__conf"
|
||||||
|
fi
|
||||||
|
|
||||||
if grep -n "^$__opt$__sep" "$__conf" >/dev/null; then
|
if grep -n "^$__opt$__sep" "$__conf" >/dev/null; then
|
||||||
_debug3 OK
|
_debug3 OK
|
||||||
|
Loading…
Reference in New Issue
Block a user