mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-07-06 11:12:45 +00:00
Removed 'head -n 1'
This commit is contained in:
parent
c1a47cee3d
commit
1a17736f9e
@ -123,7 +123,7 @@ _wedos_get_record_id() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if _contains "$row" "\"name\":\"$sub_domain\"" >/dev/null && _contains "$row" "\"rdata\":\"$r_data\"" >/dev/null; then
|
if _contains "$row" "\"name\":\"$sub_domain\"" >/dev/null && _contains "$row" "\"rdata\":\"$r_data\"" >/dev/null; then
|
||||||
_record_id=$(printf "%s" "$row" | _egrep_o "\[*\"ID\":\"[^\"]*\"" | head -n 1 | cut -d : -f 2 | tr -d \")
|
_record_id=$(printf "%s" "$row" | _egrep_o "\[*\"ID\":\"[^\"]*\"" | cut -d : -f 2 | tr -d \")
|
||||||
if [ "$_record_id" ]; then
|
if [ "$_record_id" ]; then
|
||||||
_info "$WEDOS_PREFIX OK."
|
_info "$WEDOS_PREFIX OK."
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user