Browse Source

Retain an exit code

Ondrej Simek 7 years ago
parent
commit
d6780f9e49
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dnsapi/dns_he.sh

+ 2 - 0
dnsapi/dns_he.sh

@@ -46,7 +46,9 @@ dns_he_add() {
   body="$body&TTL=300"
   body="$body&TTL=300"
   body="$body&hosted_dns_editrecord=Submit"
   body="$body&hosted_dns_editrecord=Submit"
   response="$(_post "$body" "https://dns.he.net/")"
   response="$(_post "$body" "https://dns.he.net/")"
+  exitcode=$?
   _debug2 response "$response"
   _debug2 response "$response"
+  return $exitvalue
 }
 }
 
 
 #-- dns_he_rm() - Remove TXT record ------------------------------------
 #-- dns_he_rm() - Remove TXT record ------------------------------------