mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-04 20:32:19 +08:00
setopt if the conf doesn't exist.
This commit is contained in:
4
le.sh
4
le.sh
@@ -210,7 +210,9 @@ _setopt() {
|
|||||||
echo usage: $0 '"file" "opt" "=" "value" [";"]'
|
echo usage: $0 '"file" "opt" "=" "value" [";"]'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
if [ -f $__conf ] ;
|
||||||
|
touch $__conf
|
||||||
|
fi
|
||||||
if grep -H -n "^$__opt$__sep" $__conf ; then
|
if grep -H -n "^$__opt$__sep" $__conf ; then
|
||||||
_debug OK
|
_debug OK
|
||||||
sed -i "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" $__conf
|
sed -i "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" $__conf
|
||||||
|
|||||||
Reference in New Issue
Block a user