From 70283d705c6e80a95f5b58fecebd989abbebe276 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sat, 20 Jun 2020 02:01:45 +0800 Subject: [PATCH] Refine updatedat script (#24) --- release/updatedat.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/release/updatedat.sh b/release/updatedat.sh index 53b88ffb..e6a49975 100755 --- a/release/updatedat.sh +++ b/release/updatedat.sh @@ -3,13 +3,11 @@ pushd "$GOPATH/src/v2ray.com/core/" || return # Update geoip.dat -GEOIP_TAG=$(curl --silent "https://api.github.com/repos/v2ray/geoip/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') -curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/releases/download/${GEOIP_TAG}/geoip.dat" +curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/raw/release/geoip.dat" sleep 1 # Update geosite.dat -GEOSITE_TAG=$(curl --silent "https://api.github.com/repos/v2ray/domain-list-community/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') -curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/releases/download/${GEOSITE_TAG}/dlc.dat" +curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/raw/release/dlc.dat" sleep 1 popd || return