Przeglądaj źródła

Fix return values of some functions.

Martin Kammerlander 7 lat temu
rodzic
commit
11bfb1e5fd
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      dnsapi/dns_kas.sh

+ 2 - 0
dnsapi/dns_kas.sh

@@ -116,6 +116,7 @@ _check_and_save() {
 # See: https://github.com/Neilpang/acme.sh/wiki/DNS-API-Dev-Guide
 _get_zone() {
   _zone=$(echo "$1" | rev | cut -d . -f1-2 | rev).
+  return 0
 }
 
 # Removes the domain/subdomain from the entry since kasserver
@@ -124,6 +125,7 @@ _get_zone() {
 # See: https://github.com/Neilpang/acme.sh/wiki/DNS-API-Dev-Guide
 _get_record_name() {
   _record_name=$(echo "$1" | rev | cut -d"." -f3- | rev)
+  return 0
 }
 
 # Retrieve the DNS record ID