mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-15 04:42:12 +08:00
Double quote for globbing
This commit is contained in:
@@ -121,15 +121,15 @@ dns_qc_rm() {
|
|||||||
fi
|
fi
|
||||||
# Temporary file to hold matched content (one per line)
|
# Temporary file to hold matched content (one per line)
|
||||||
tmpfile=$(_mktemp)
|
tmpfile=$(_mktemp)
|
||||||
echo $array | grep -o '{[^}]*}' | sed 's/^{//;s/}$//' >"$tmpfile"
|
echo $array | grep -o '{[^}]*}' | sed 's/^{//;s/}$//' > "$tmpfile"
|
||||||
while IFS= read -r obj || [ -n "$obj" ]; do
|
while IFS= read -r obj || [ -n "$obj" ]; do
|
||||||
if echo $obj | grep -q '"TXT"' && echo $obj | grep -q '"id"' && echo $obj | grep -q $txtvalue; then
|
if echo $obj | grep -q '"TXT"' && echo $obj | grep -q '"id"' && echo $obj | grep -q $txtvalue ; then
|
||||||
_debug "response includes" "$obj"
|
_debug "response includes" "$obj"
|
||||||
record_id=$(echo $obj | sed 's/^\"id\":\([0-9]\+\).*/\1/')
|
record_id=$(echo $obj | sed 's/^\"id\":\([0-9]\+\).*/\1/')
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done <$tmpfile
|
done < "$tmpfile"
|
||||||
rm $tmpfile
|
rm "$tmpfile"
|
||||||
|
|
||||||
if [ -z "$record_id" ]; then
|
if [ -z "$record_id" ]; then
|
||||||
_info "TXT record, or $txtvalue not found, nothing to remove"
|
_info "TXT record, or $txtvalue not found, nothing to remove"
|
||||||
|
|||||||
Reference in New Issue
Block a user