diff --git a/Menus/Software.sh b/Menus/Software.sh index 6b4d7bf..e39c8a4 100644 --- a/Menus/Software.sh +++ b/Menus/Software.sh @@ -47,7 +47,9 @@ done read -p "请输入需要安装的软件序号,用 空格 隔开:" pick -if [[ ! $pick =~ [1-"${#soft_dick[@]}"\ ] ]];then +if [[ -z $pick ]];then + exit +elif [[ ! $pick =~ [1-"${#soft_dick[@]}"\ ] ]];then echo "输入错误" exit fi