修复软件安装正则问题
This commit is contained in:
parent
73dad9aa3f
commit
50e6603d70
@ -55,10 +55,15 @@ if [[ -z $pick ]];then
|
|||||||
pick="$i"
|
pick="$i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
elif ! [[ $pick =~ [1-${#soft_dick[@]}|\s]+ ]];then
|
else
|
||||||
|
for i in $path ; do
|
||||||
|
if ! [[ $i =~ [1-${#soft_dick[@]}] ]];then
|
||||||
echo "输入错误"
|
echo "输入错误"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
for i in $pick ; do
|
for i in $pick ; do
|
||||||
if [[ ${soft_dick[${soft_array[$i]}]} == 0 ]]; then
|
if [[ ${soft_dick[${soft_array[$i]}]} == 0 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user