mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-08-13 12:33:30 +02:00
setopt if the conf doesn't exist.
This commit is contained in:
parent
72775c5ad9
commit
5a29f018f2
1 changed files with 3 additions and 1 deletions
4
le.sh
4
le.sh
|
|
@ -210,7 +210,9 @@ _setopt() {
|
|||
echo usage: $0 '"file" "opt" "=" "value" [";"]'
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -f $__conf ] ;
|
||||
touch $__conf
|
||||
fi
|
||||
if grep -H -n "^$__opt$__sep" $__conf ; then
|
||||
_debug OK
|
||||
sed -i "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" $__conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue