更换vpn菜单检测方法

This commit is contained in:
lsy 2024-09-22 21:33:39 +08:00
parent 04d80bb5fc
commit 5befa76b71

View File

@ -16,7 +16,7 @@ for i in "${!vpn_array[@]}";do
done
read -p "请输入要选择的序号:" vpn_pick
if [[ $vpn_pick -gt 0 && $vpn_pick -lt $vpn_number ]];then
if [[ $vpn_pick =~ [1-$vpn_number] ]];then
eval "${vpn_array[${vpn_index[$vpn_pick]}]}"
echo "安装完成"
else