修改 task 获取 token 逻辑

This commit is contained in:
whyour
2023-03-12 21:33:46 +08:00
parent 3a3b945de8
commit 955d815d14
3 changed files with 21 additions and 7 deletions
+5 -1
View File
@@ -15,7 +15,11 @@ define_program() {
elif [[ $file_param == *.sh ]]; then
which_program="bash"
elif [[ $file_param == *.ts ]]; then
which_program="tsx"
if ! type tsx &>/dev/null; then
which_program="ts-node-transpile-only"
else
which_program="tsx"
fi
else
which_program=""
fi