Update generate-rules-dat.sh

This commit is contained in:
Loyalsoldier 2019-12-11 21:53:06 +08:00 committed by GitHub
parent 5840608a27
commit 414e79aaa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,13 +29,13 @@ cd $GOPATH/src/$GEOSITE_REPO
echo -e "${GREEN}>>> generating GFWList...${NC}"
curl -sSL $getGFWLIST_SCRIPT \
| bash -s -- -l -o $GOPATH/src/$GEOSITE_REPO/data/gfwlist
| bash -s -- -l -o ./data/gfwlist
echo -e "${GREEN}>>> Finished GFWList ${NC}"
echo -e "${GREEN}>>> generating Chinese domains list...${NC}"
curl -sSL $CHINA_DOMAINS_URL \
| awk -F '/' '{print $2}' \
> $GOPATH/src/$GEOSITE_REPO/data/chinalist
> ./data/chinalist
echo -e "${GREEN}>>> Finished Chinalist ${NC}"
echo -e "${GREEN}>>> building geosite.dat file...${NC}"
@ -43,4 +43,10 @@ go run main.go
mv dlc.dat $V2RAY_FOLDER/geosite.dat
echo -e "${GREEN}>>> Finished geosite.dat ${NC}"
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
ls -lah ./data
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
ls -lah $V2RAY_FOLDER
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
echo -e "${GREEN}完成啦!🌈${NC}"