修改内置token获取方式

This commit is contained in:
whyour committed 2022-08-11 13:13:37 +08:00
1 parent 53414e5d70
commit a7117e4442
4 files changed
+22 -8

No files matched your search

+1 -6
View File
@@ -1,12 +1,7 @@
#!/usr/bin/env bash
get_token() {
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
token=$(cat $file_auth_token | jq -r .value)
}
add_cron_api() {