mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-08-13 12:33:30 +02:00
Ran shfmt locally
This commit is contained in:
parent
cf2f9ef251
commit
6a37f23b14
1 changed files with 3 additions and 3 deletions
|
|
@ -121,16 +121,16 @@ dns_qc_rm() {
|
|||
fi
|
||||
# Temporary file to hold matched content (one per line)
|
||||
tmpfile=$(_mktemp)
|
||||
echo "$array" | grep -o '{[^}]*}' | sed 's/^{//;s/}$//' > "$tmpfile"
|
||||
echo "$array" | grep -o '{[^}]*}' | sed 's/^{//;s/}$//' >"$tmpfile"
|
||||
record_id=""
|
||||
|
||||
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"
|
||||
record_id=$(echo "$obj" | sed 's/^\"id\":\([0-9]\+\).*/\1/')
|
||||
break
|
||||
fi
|
||||
done < "$tmpfile"
|
||||
done <"$tmpfile"
|
||||
|
||||
rm "$tmpfile"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue