Fixed Profiles rules with # prefix

This commit is contained in:
Loyalsoldier 2019-12-15 13:09:49 +08:00 committed by GitHub
parent 964be7423e
commit 365af40cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,13 +58,13 @@ jobs:
- name: Get and add proxy domains from @ConnersHua/Profiles into geolocation-!cn - name: Get and add proxy domains from @ConnersHua/Profiles into geolocation-!cn
run: | run: |
cd $GOPATH/src/$GEOSITE_REPO/data 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 echo "include:profileproxy" >> geolocation-\!cn
- name: Get and add direct domains from @ConnersHua/Profiles into cn - name: Get and add direct domains from @ConnersHua/Profiles into cn
run: | run: |
cd $GOPATH/src/$GEOSITE_REPO/data 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 echo "include:profiledirect" >> cn
- name: Get and add chinalist into 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 - name: Get and add reject domains from @ConnersHua/Profiles into category-ads-all
run: | run: |
cd $GOPATH/src/$GEOSITE_REPO/data 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 echo "include:profilereject" >> category-ads-all
- name: Build geosite.dat file - name: Build geosite.dat file