修复内置token获取

This commit is contained in:
whyour
2022-07-18 15:41:53 +08:00
parent 999b5d325f
commit 42dabbf4c0
5 changed files with 19 additions and 16 deletions
+6 -1
View File
@@ -1,7 +1,12 @@
#!/usr/bin/env bash
get_token() {
token=$(ts-node-transpile-only "$dir_shell/token.ts")
local tokenFile="$dir_static/build/token.js"
if [[ ! -f "$tokenFile" ]]; then
token=$(ts-node-transpile-only "$dir_root/back/token.ts")
else
token=$(node "$tokenFile")
fi
}
add_cron_api() {