From 4d4d31431df4bc9d92510b685b473a17e7ae4a7b Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Wed, 23 Jun 2021 18:58:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=A7=E8=A1=8Cshell?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 2 ++ shell/update.sh | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/shell/task.sh b/shell/task.sh index 8e0d264c..71395b12 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -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 diff --git a/shell/update.sh b/shell/update.sh index 9bd267c2..33cf3f0a 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -426,9 +426,6 @@ main() { rmlog) . $dir_shell/rmlog.sh "$p2" | tee $log_path ;; - code) - . $dir_shell/code.sh - ;; bot) . $dir_shell/bot.sh ;;