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