diff --git a/Menus/Software.sh b/Menus/Software.sh index 65428e4..e54a08e 100644 --- a/Menus/Software.sh +++ b/Menus/Software.sh @@ -55,7 +55,7 @@ if [[ -z $pick ]];then pick="$i" fi done -elif [[ ! $pick =~ ^[[:space:]]*([1-${#soft_dick[@]}]+([[:space:]]+[1-${#soft_dick[@]}]+)*)?[[:space:]]*$ ]];then +elif [[ ! $pick =~ [1-9\s]+ ]];then echo "输入错误" exit fi