修复软件安装正则问题

This commit is contained in:
lsy 2024-09-23 19:29:40 +08:00
parent 50e6603d70
commit 1681010bf6

View File

@ -55,14 +55,9 @@ if [[ -z $pick ]];then
pick="$i" pick="$i"
fi fi
done done
else elif [[ ! $pick =~ [1-${#soft_dick[@]}[:space:]]+ ]];then
for i in $path ; do echo "输入错误"
if ! [[ $i =~ [1-${#soft_dick[@]}] ]];then exit
echo "输入错误"
exit
fi
done
fi fi
for i in $pick ; do for i in $pick ; do