修复执行shell脚本任务

This commit is contained in:
hanhh 2021-06-23 18:58:32 +08:00
parent c9fecae67a
commit 4d4d31431d
2 changed files with 2 additions and 3 deletions

View File

@ -12,6 +12,8 @@ define_program() {
which_program="node"
elif [[ $p1 == *.py ]]; then
which_program="python3"
elif [[ $p1 == *.sh ]]; then
which_program="bash"
else
which_program=""
fi

View File

@ -426,9 +426,6 @@ main() {
rmlog)
. $dir_shell/rmlog.sh "$p2" | tee $log_path
;;
code)
. $dir_shell/code.sh
;;
bot)
. $dir_shell/bot.sh
;;