#!/usr/bin/env bash
set -e
export http_proxy=127.0.0.1:8889
export https_proxy=127.0.0.1:8889
v2ray_folder="/usr/local/Cellar/v2ray-core/4.39.2/share/v2ray-core/"
GREEN='\033[0;32m'
NC='\033[0m'
GEOIP_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geoip.dat"
GEOSITE_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geosite.dat"
echo -e "${GREEN}>>> change directory...${NC}"
cd $v2ray_folder
echo -e "${GREEN}>>> delete old dat files...${NC}"
rm -f geoip.dat geosite.dat
echo -e "${GREEN}>>> downloading geoip.dat files...${NC}"
curl -L -O $GEOIP_URL
echo -e "${GREEN}>>> downloading geosite.dat files...${NC}"
curl -L -O $GEOSITE_URL
echo -e "${GREEN}完成啦!${NC}"
发表回复