新增vpn

This commit is contained in:
lsy 2024-09-20 14:54:05 +08:00
parent 7a3ba944c5
commit d1c61e7653

View File

@ -15,9 +15,9 @@ for i in "${!vpn_array[@]}";do
done done
read -p "请输入要选择的序号:" vpn_pick read -p "请输入要选择的序号:" vpn_pick
if [[ -z ${vpn_array[${vpn_number[$vpn_pick]}]} ]];then if [[ -z ${vpn_array[${vpn_index[$vpn_pick]}]} ]];then
echo "输入错误" echo "输入错误"
else else
echo "${vpn_array[${vpn_number[$vpn_pick]}]}" echo "${vpn_array[${vpn_index[$vpn_pick]}]}"
fi fi