From cd42ea56a274f10fc09f2ebb4c70f5d325b0c849 Mon Sep 17 00:00:00 2001 From: GNDevProd Date: Sun, 1 Mar 2026 22:53:59 +0800 Subject: [PATCH] Update dns_gname.sh --- dnsapi/dns_gname.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_gname.sh b/dnsapi/dns_gname.sh index fc056981..2033b19e 100644 --- a/dnsapi/dns_gname.sh +++ b/dnsapi/dns_gname.sh @@ -145,7 +145,7 @@ _get_record_id() { return 1 fi - dns_record_id=$(echo "$matched_row" | _egrep_o "\"id\":\"[^\"]*\"" | head -n 1 | cut -d : -f 2 | tr -d '"') + dns_record_id=$(echo "$matched_row" | _egrep_o "\"id\":\"[^\"]*\"" | _head_n 1 | cut -d : -f 2 | tr -d '"') if [ -n "$dns_record_id" ]; then _debug "Successfully found record ID: $dns_record_id"