修复任务执行参数出错

This commit is contained in:
hanhh 2021-08-22 15:23:12 +08:00
parent bad8bbdb7c
commit 5496689d7c

View File

@ -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