From 5b1fab4ff3304ac5cb50fac34277002fb8e8757a Mon Sep 17 00:00:00 2001 From: Augustin-FL Date: Thu, 14 Feb 2019 00:19:18 +0100 Subject: [PATCH] fixing remaining travis issues --- dnsapi/dns_online.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dnsapi/dns_online.sh b/dnsapi/dns_online.sh index 8c8009bb..7d4627e7 100755 --- a/dnsapi/dns_online.sh +++ b/dnsapi/dns_online.sh @@ -67,8 +67,8 @@ dns_online_rm() { if ! _online_rest GET "domain/$_domain/version/active"; then return 1 fi - - rid=$(echo $response | _egrep_o "\"id\":[0-9]+,\"name\":\"$_sub_domain\",\"data\":\"\\\u0022$txtvalue\\\u0022\"" | cut -d ':' -f 2 | cut -d ',' -f 1) + + rid=$(echo "$response" | _egrep_o "\"id\":[0-9]+,\"name\":\"$_sub_domain\",\"data\":\"\\\u0022$txtvalue\\\u0022\"" | cut -d ':' -f 2 | cut -d ',' -f 1) _debug rid "$rid" if [ -z "$rid" ]; then return 1 @@ -135,15 +135,14 @@ _get_root() { return 1 } - # this function create a temporary zone version # as online.net does not allow updating an active version _online_create_temporary_zone_version() { - + _online_rest POST "domain/$_domain/version" "name=acme.sh" if [ "$?" != "0" ]; then return 1 - fi + fi _temporary_dns_version=$(echo "$response" | _egrep_o '"uuid_ref":.*' | cut -d ':' -f 2 | cut -d '"' -f 2) @@ -169,7 +168,7 @@ _online_enable_zone() { if [ "$?" != "0" ]; then return 1 - fi + fi return 0 }