瀏覽代碼

fix: correct return value

racitup 3 年之前
父節點
當前提交
6251652c93
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      dnsapi/dns_mythic_beasts.sh

+ 3 - 2
dnsapi/dns_mythic_beasts.sh

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