mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 15:43:24 +08:00
修复执行shell脚本任务
This commit is contained in:
parent
c9fecae67a
commit
4d4d31431d
|
@ -12,6 +12,8 @@ define_program() {
|
||||||
which_program="node"
|
which_program="node"
|
||||||
elif [[ $p1 == *.py ]]; then
|
elif [[ $p1 == *.py ]]; then
|
||||||
which_program="python3"
|
which_program="python3"
|
||||||
|
elif [[ $p1 == *.sh ]]; then
|
||||||
|
which_program="bash"
|
||||||
else
|
else
|
||||||
which_program=""
|
which_program=""
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -426,9 +426,6 @@ main() {
|
||||||
rmlog)
|
rmlog)
|
||||||
. $dir_shell/rmlog.sh "$p2" | tee $log_path
|
. $dir_shell/rmlog.sh "$p2" | tee $log_path
|
||||||
;;
|
;;
|
||||||
code)
|
|
||||||
. $dir_shell/code.sh
|
|
||||||
;;
|
|
||||||
bot)
|
bot)
|
||||||
. $dir_shell/bot.sh
|
. $dir_shell/bot.sh
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user