修复软件安装正则问题

This commit is contained in:
lsy 2024-09-23 20:20:11 +08:00
parent 8f7d0f4099
commit b196fdacee

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_number] ]]; then
echo "输入错误"
exit
fi