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