浏览代码

fix: github switch

racitup 3 年之前
父节点
当前提交
f46ee93597
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dnsapi/dns_mythic_beasts.sh

+ 2 - 2
dnsapi/dns_mythic_beasts.sh

@@ -166,8 +166,8 @@ _initAuth() {
 # authentication. This works arounds this by using an undocumented MB API to obtain a token not tied to an
 # IP just for the github tests.
 _oauth2() {
-  _info "$(printenv)"
-  if [ -z "$TEST_DNS_SLEEP" ]; then
+  _info "DOMAIN: $TEST_DNS"
+  if [ "$TEST_DNS" != "dns_mythic_beasts" ]; then
     _oauth2_std
   else
     _oauth2_github