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