From 3df59d74ae9c859a5b103297e8875bae6e71e0cc Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 15:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99=E5=AE=89=E8=A3=85=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Install.sh | 1 + Menus/Software.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Menus/Install.sh b/Menus/Install.sh index d531108..b2ae76a 100644 --- a/Menus/Install.sh +++ b/Menus/Install.sh @@ -5,6 +5,7 @@ read -p "默认 /var/script:" path if [[ -z $path ]];then path="/var/script" fi +echo "软件正在安装中" mkdir -p "$path" rm -rf "$path/linuxtoo" diff --git a/Menus/Software.sh b/Menus/Software.sh index 56d0c09..6b4d7bf 100644 --- a/Menus/Software.sh +++ b/Menus/Software.sh @@ -47,7 +47,7 @@ done read -p "请输入需要安装的软件序号,用 空格 隔开:" pick -if [[ ! $pick =~ [1-"${#soft_dick[@]}"] ]];then +if [[ ! $pick =~ [1-"${#soft_dick[@]}"\ ] ]];then echo "输入错误" exit fi