From 2043b3d9974fa704f49a8ea60011053954a8eb35 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 20:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=AF=E4=BB=B6=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=AD=A3=E5=88=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Software.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Menus/Software.sh b/Menus/Software.sh index df52e54..3baa84c 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[@]}] || $pick =~ ([1-${#soft_dick[@]}][\s]?)+ ]];then +elif ! [[ $pick -ge 1 && $pick -le ${#soft_dick[@]} || $pick =~ ([1-${#soft_dick[@]}][\s]?)+ ]];then echo "输入错误" exit fi