重写安装软件逻辑
This commit is contained in:
parent
3df59d74ae
commit
a107eb6bf5
@ -47,7 +47,9 @@ done
|
|||||||
|
|
||||||
read -p "请输入需要安装的软件序号,用 空格 隔开:" pick
|
read -p "请输入需要安装的软件序号,用 空格 隔开:" pick
|
||||||
|
|
||||||
if [[ ! $pick =~ [1-"${#soft_dick[@]}"\ ] ]];then
|
if [[ -z $pick ]];then
|
||||||
|
exit
|
||||||
|
elif [[ ! $pick =~ [1-"${#soft_dick[@]}"\ ] ]];then
|
||||||
echo "输入错误"
|
echo "输入错误"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user