修复task参数提示

This commit is contained in:
hanhh
2021-07-26 01:06:27 +08:00
parent c77e302874
commit 9d89ecc51e
2 changed files with 3 additions and 5 deletions
+3 -4
View File
@@ -171,10 +171,6 @@ run_else() {
main() {
if [[ $1 == *.js ]] || [[ $1 == *.py ]] || [[ $1 == *.sh ]] || [[ $1 == *.ts ]]; then
case $# in
0)
echo
usage
;;
1)
run_normal $1
;;
@@ -195,6 +191,9 @@ main() {
run_else "$@"
;;
esac
elif [[ $# -eq 0]]; then
echo
usage
else
run_else "$@"
fi