We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6103ade commit 828cb04Copy full SHA for 828cb04
.github/workflows/build.yml
@@ -57,7 +57,7 @@ jobs:
57
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
58
add-apt-repository ppa:rmescandon/yq
59
apt-get update
60
- apt-get install yq curl tldextract
+ apt-get install yq curl
61
EOF
62
)"
63
- name: Generate blocklist
@@ -68,7 +68,7 @@ jobs:
68
get_domains() {
69
curl -sSL "$1" |\
70
yq e '.[].domain' - |\
71
- python -c 'import sys,tldextract as t; print("\n".join(t.extract(a).registered_domain for a in sys.stdin))'
+ awk -F'.' -vOFS='.' '{ if ($1 ~ /^(*|(www))$/) { $1 = ""; print substr($0,2) } else { print } }'
72
}
73
74
cat << EOF >| no_copycats.new
0 commit comments