修复软件安装正则问题

This commit is contained in:
lsy 2024-09-23 19:27:31 +08:00
parent 73dad9aa3f
commit 50e6603d70

View File

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