From 365af40cb05afb33085237ba164bd357c060ceea Mon Sep 17 00:00:00 2001 From: Loyalsoldier Date: Sun, 15 Dec 2019 13:09:49 +0800 Subject: [PATCH] Fixed Profiles rules with # prefix --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1df37b2de2..2b714d3f37 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,13 +58,13 @@ jobs: - name: Get and add proxy domains from @ConnersHua/Profiles into geolocation-!cn run: | cd $GOPATH/src/$GEOSITE_REPO/data - curl -sSL $Profiles_URL | grep PROXY | grep DOMAIN | cut -d ',' -f 2 > profileproxy + curl -sSL $Profiles_URL | awk '/^DOMAIN.+PROXY/' | cut -d ',' -f 2 > profileproxy echo "include:profileproxy" >> geolocation-\!cn - name: Get and add direct domains from @ConnersHua/Profiles into cn run: | cd $GOPATH/src/$GEOSITE_REPO/data - curl -sSL $Profiles_URL | grep DIRECT | grep DOMAIN | cut -d ',' -f 2 > profiledirect + curl -sSL $Profiles_URL | awk '/^DOMAIN.+DIRECT/' | cut -d ',' -f 2 > profiledirect echo "include:profiledirect" >> cn - name: Get and add chinalist into cn @@ -76,7 +76,7 @@ jobs: - name: Get and add reject domains from @ConnersHua/Profiles into category-ads-all run: | cd $GOPATH/src/$GEOSITE_REPO/data - curl -sSL $Profiles_URL | grep REJECT | grep DOMAIN | cut -d ',' -f 2 > profilereject + curl -sSL $Profiles_URL | awk '/^DOMAIN.+REJECT/' | cut -d ',' -f 2 > profilereject echo "include:profilereject" >> category-ads-all - name: Build geosite.dat file