Browse Source

fix: correct return value

racitup 3 years ago
parent
commit
6251652c93
1 changed files with 3 additions and 2 deletions
  1. 3 2
      dnsapi/dns_mythic_beasts.sh

+ 3 - 2
dnsapi/dns_mythic_beasts.sh

@@ -168,10 +168,11 @@ _initAuth() {
 _oauth2() {
 _oauth2() {
   printenv
   printenv
   if [ -z "$TEST_DNS_SLEEP" ]; then
   if [ -z "$TEST_DNS_SLEEP" ]; then
-    return _oauth2_std
+    _oauth2_std
   else
   else
-    return _oauth2_github
+    _oauth2_github
   fi
   fi
+  return $?
 }
 }
 
 
 _oauth2_std() {
 _oauth2_std() {