mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 09:52:46 +00:00
Merge 194d692edd5bd3cf490a63cb9f50363beaa6e11d into b0ff770b0e22f2ef16d7c6212d0e0af89c73ba69
This commit is contained in:
commit
57f79b1913
8
le.sh
8
le.sh
@ -355,7 +355,7 @@ _send_signed_request() {
|
|||||||
response="$($CURL -X POST --data "$body" $url)"
|
response="$($CURL -X POST --data "$body" $url)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
responseHeaders="$(cat $CURL_HEADER)"
|
responseHeaders="$(< $CURL_HEADER)"
|
||||||
|
|
||||||
_debug responseHeaders "$responseHeaders"
|
_debug responseHeaders "$responseHeaders"
|
||||||
_debug response "$response"
|
_debug response "$response"
|
||||||
@ -395,14 +395,14 @@ _setopt() {
|
|||||||
if [[ "$__val" == *"&"* ]] ; then
|
if [[ "$__val" == *"&"* ]] ; then
|
||||||
__val="$(echo $__val | sed 's/&/\\&/g')"
|
__val="$(echo $__val | sed 's/&/\\&/g')"
|
||||||
fi
|
fi
|
||||||
text="$(cat $__conf)"
|
text="$(< $__conf)"
|
||||||
echo "$text" | sed "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" > "$__conf"
|
echo "$text" | sed "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" > "$__conf"
|
||||||
|
|
||||||
elif grep -H -n "^#$__opt$__sep" "$__conf" > /dev/null ; then
|
elif grep -H -n "^#$__opt$__sep" "$__conf" > /dev/null ; then
|
||||||
if [[ "$__val" == *"&"* ]] ; then
|
if [[ "$__val" == *"&"* ]] ; then
|
||||||
__val="$(echo $__val | sed 's/&/\\&/g')"
|
__val="$(echo $__val | sed 's/&/\\&/g')"
|
||||||
fi
|
fi
|
||||||
text="$(cat $__conf)"
|
text="$(< $__conf)"
|
||||||
echo "$text" | sed "s|^#$__opt$__sep.*$|$__opt$__sep$__val$__end|" > "$__conf"
|
echo "$text" | sed "s|^#$__opt$__sep.*$|$__opt$__sep$__val$__end|" > "$__conf"
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -1392,7 +1392,7 @@ uninstall() {
|
|||||||
|
|
||||||
_profile="$(_detect_profile)"
|
_profile="$(_detect_profile)"
|
||||||
if [ "$_profile" ] ; then
|
if [ "$_profile" ] ; then
|
||||||
text="$(cat $_profile)"
|
text="$(< $_profile)"
|
||||||
echo "$text" | sed "s|^source.*le.env.*$||" > "$_profile"
|
echo "$text" | sed "s|^source.*le.env.*$||" > "$_profile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user