File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ sed -i 's/GEOSITE_VER:=.*/GEOSITE_VER:='"$GEOSITE_VER"'/g' package/custom/v2ray-
5050sed -i ' /FILE:=$(GEOSITE_FILE)/a\ HASH:=' " $GEOSITE_HASH " ' ' package/custom/v2ray-geodata/Makefile
5151sed -i ' s/URL:=https:\/\/www.v2fly.org/URL:=https:\/\/github.com\/Loyalsoldier\/v2ray-rules-dat/g' package/custom/v2ray-geodata/Makefile
5252
53- SMARTDNS_VER=$( echo -n ` curl -sL -H " ${AUTH} " https://api.github.com/repos/pymumu/smartdns/commits | jq .[0].commit.committer.date | awk -F " T" ' {print $1}' | sed ' s/\"//g' | sed ' s/\-/\./g' ` )
54- SMARTDNS_SHA=$( echo -n ` curl -sL -H " ${AUTH} " https://api.github.com/repos/pymumu/smartdns/commits | jq .[0].sha | sed ' s/\"//g' ` )
53+ SMARTDNS_JSON=$( curl -sL -H " ${AUTH} " https://api.github.com/repos/pymumu/smartdns/commits | jq .[0])
54+ SMARTDNS_VER=$( echo -n ` echo ${SMARTDNS_JSON} | jq .commit.committer.date | awk -F " T" ' {print $1}' | sed ' s/\"//g' | sed ' s/\-/\./g' ` )
55+ SMARTDNS_SHA=$( echo -n ` echo ${SMARTDNS_JSON} | jq .sha | sed ' s/\"//g' ` )
5556sed -i ' /PKG_MIRROR_HASH:=/d' package/custom/smartdns/Makefile
5657sed -i ' s/PKG_VERSION:=.*/PKG_VERSION:=' " ${SMARTDNS_VER} " ' /g' package/custom/smartdns/Makefile
5758sed -i ' s/PKG_SOURCE_VERSION:=.*/PKG_SOURCE_VERSION:=' " ${SMARTDNS_SHA} " ' /g' package/custom/smartdns/Makefile
You can’t perform that action at this time.
0 commit comments