修复task参数提示

This commit is contained in:
hanhh committed 2021-07-26 01:06:27 +08:00
1 parent c77e302874
commit 9d89ecc51e
2 files changed
+3 -5

No files matched your search

+3 -4
View File
@@ -171,10 +171,6 @@ run_else() {
main() { main() {
if [[ $1 == *.js ]] || [[ $1 == *.py ]] || [[ $1 == *.sh ]] || [[ $1 == *.ts ]]; then if [[ $1 == *.js ]] || [[ $1 == *.py ]] || [[ $1 == *.sh ]] || [[ $1 == *.ts ]]; then
case $# in case $# in
0)
echo
usage
;;
1) 1)
run_normal $1 run_normal $1
;; ;;
@@ -195,6 +191,9 @@ main() {
run_else "$@" run_else "$@"
;; ;;
esac esac
elif [[ $# -eq 0]]; then
echo
usage
else else
run_else "$@" run_else "$@"
fi fi
-1
View File
@@ -173,7 +173,6 @@ const Script = () => {
lineNumbersMinChars: 3, lineNumbersMinChars: 3,
folding: false, folding: false,
glyphMargin: false, glyphMargin: false,
wordWrap: 'on'
}} }}
onChange={(val) => {setValue(val as string)}} onChange={(val) => {setValue(val as string)}}
/> />