修复软件安装正则问题
This commit is contained in:
parent
ac526c51b9
commit
167767ccc2
@ -55,7 +55,7 @@ if [[ -z $pick ]];then
|
||||
pick="$i"
|
||||
fi
|
||||
done
|
||||
elif [[ ! $pick =~ ^[[:space:]]*([1-${#soft_dick[@]}]+([[:space:]]+[1-${#soft_dick[@]}]+)*)?[[:space:]]*$ ]];then
|
||||
elif [[ ! $pick =~ [1-9\s]+ ]];then
|
||||
echo "输入错误"
|
||||
exit
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user