修复软件安装正则问题

This commit is contained in:
lsy 2024-09-23 20:18:54 +08:00
parent 88fa604f7d
commit 8f7d0f4099

View File

@ -58,7 +58,7 @@ if [[ -z $pick ]];then
done
else
for i in $pick ; do
if [[ $i =~ [1-${#soft_dick[@]}] ]]; then
if [[ ! $i =~ [1-${#soft_dick[@]}] ]]; then
echo "输入错误"
exit
fi