更换vpn菜单检测方法
This commit is contained in:
parent
04d80bb5fc
commit
5befa76b71
@ -16,7 +16,7 @@ for i in "${!vpn_array[@]}";do
|
|||||||
done
|
done
|
||||||
read -p "请输入要选择的序号:" vpn_pick
|
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]}]}"
|
eval "${vpn_array[${vpn_index[$vpn_pick]}]}"
|
||||||
echo "安装完成"
|
echo "安装完成"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user