From d1fe41f02c092fcbb824f282169b6f98b40a1678 Mon Sep 17 00:00:00 2001 From: Source Date: Sun, 23 Jun 2019 11:41:49 +0200 Subject: [PATCH] gdnsdk: overview page as singleline in regexp-match --- dnsapi/dns_gdnsdk.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dnsapi/dns_gdnsdk.sh b/dnsapi/dns_gdnsdk.sh index 8c4962c0..39d11f5b 100755 --- a/dnsapi/dns_gdnsdk.sh +++ b/dnsapi/dns_gdnsdk.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x #Author: Herman Sletteng #Report Bugs here: https://github.com/loial/acme.sh # @@ -159,7 +160,7 @@ _successful_update() { _findentry() { #returns id of dns entry, if it exists _myget "action=dns_primary_changeDNSsetup&user_domain=$_domain" - _id=$(echo "$_result" | _egrep_o "$1\s*$2[^?]*[^&]*&id=[^&]*" | sed 's/^.*=//') + _id=$(echo "$_result" | tr '\\n' ' ' | _egrep_o "$1\s*$2[^?]*[^&]*&id=[^&]*" | sed 's/^.*=//') if [ -n "$_id" ]; then _debug "Entry found with _id=$_id" return 0