mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-13 01:41:47 +00:00
fix for solaris
fix for solaris
This commit is contained in:
commit
c107f3632a
@ -102,7 +102,7 @@ existing_records() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if _contains "$response" "Action completed successful"; then
|
if _contains "$response" "Action completed successful"; then
|
||||||
count=$(printf "%s" "$response" | grep '<type>TXT</type>' | wc -l)
|
count=$(printf "%s" "$response" | grep '<type>TXT</type>' | wc -l | tr -d ' ')
|
||||||
record_id=$(printf "%s" "$response" | grep '^<id>' | tail -1 | cut -d '>' -f 2 | cut -d '<' -f 1)
|
record_id=$(printf "%s" "$response" | grep '^<id>' | tail -1 | cut -d '>' -f 2 | cut -d '<' -f 1)
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
@ -208,9 +208,9 @@ _rest() {
|
|||||||
|
|
||||||
if [ "$data" ]; then
|
if [ "$data" ]; then
|
||||||
_debug2 data "$data"
|
_debug2 data "$data"
|
||||||
response="$(_post "$data" "$url")"
|
response="$(_post "$data" "$url" | tr -d '\r')"
|
||||||
else
|
else
|
||||||
response="$(_get "$url")"
|
response="$(_get "$url" | tr -d '\r')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user