新增vpn

This commit is contained in:
lsy 2024-09-20 14:49:39 +08:00
parent f091de80f1
commit 7a3ba944c5

View File

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