summarylogtreecommitdiffstats
path: root/vxray-rules-dat-updater
diff options
context:
space:
mode:
authorzswdcx2021-08-23 12:53:56 +0800
committerzswdcx2021-08-23 12:53:56 +0800
commit9c2ecf531a18568b1de44e79098079fbcf740638 (patch)
tree8e55028da6246d09c9478470c7a182c988cef03d /vxray-rules-dat-updater
parente5d3a144b31c4bf6ad6069fb36d7fe4207efc3db (diff)
downloadaur-9c2ecf531a18568b1de44e79098079fbcf740638.tar.gz
VCS fix
Diffstat (limited to 'vxray-rules-dat-updater')
-rwxr-xr-xvxray-rules-dat-updater6
1 files changed, 6 insertions, 0 deletions
diff --git a/vxray-rules-dat-updater b/vxray-rules-dat-updater
index 6a245de27f9..3ba6736d455 100755
--- a/vxray-rules-dat-updater
+++ b/vxray-rules-dat-updater
@@ -9,9 +9,15 @@ JsDelivr="https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/"
download_files() {
echo "Fetching geoip.dat"
curl -LO "${1}/geoip.dat"
+ curl -LO "${1}/geoip.dat.sha256sum"
+ sha256sum --check "geoip.dat.sha256sum"
echo "Fetching geosite.dat"
curl -LO "${1}/geosite.dat"
+ curl -LO "${1}/geosite.dat.sha256sum"
+ sha256sum --check "geosite.dat.sha256sum"
+
+ rm -v "geosite.dat.sha256sum" "geoip.dat.sha256sum"
}
case "${1}" in