修复软件安装正则问题

This commit is contained in:
lsy 2024-09-23 19:17:30 +08:00
parent 167767ccc2
commit ac8e926273

View File

@ -55,7 +55,7 @@ if [[ -z $pick ]];then
pick="$i" pick="$i"
fi fi
done done
elif [[ ! $pick =~ [1-9\s]+ ]];then elif [[ ! $pick =~ [1-${#soft_dick[@]}\s]+ ]];then
echo "输入错误" echo "输入错误"
exit exit
fi fi