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