From 5496689d7cbd0bef651cd81d7974e54ab549645e Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sun, 22 Aug 2021 15:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=8F=82=E6=95=B0=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/task.sh b/shell/task.sh index 5a3ac5b9..a6564608 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -195,7 +195,7 @@ main() { ;; esac done - shift $(($OPTIND - 1)) + [[ "$show_log" == "true" ]] && shift $(($OPTIND - 1)) if [[ $1 == *.js ]] || [[ $1 == *.py ]] || [[ $1 == *.sh ]] || [[ $1 == *.ts ]]; then case $# in