Fix awk command

This commit is contained in:
loyalsoldier 2020-01-25 18:51:30 +08:00
parent d320c8e521
commit dc46aa1b73

View File

@ -34,7 +34,7 @@ jobs:
curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php"
cat servers-source.xml | sed -nEe 's/.+host="(.+):[0-9]+".+/\L\1/p' | sort -u > hosts-with-ip.txt
sed -E '/^([0-9]{1,3}\.){3}[0-9]{1,3}$/d' hosts-with-ip.txt > hosts-without-ip.txt
cat hosts-without-ip.txt | awk '{print "full:$0\n"}' > $GOPATH/src/$REPO_URL/data/ookla-speedtest
cat hosts-without-ip.txt | awk '{printf "full:%s\n", $0}' > $GOPATH/src/$REPO_URL/data/ookla-speedtest
echo "include:ookla-speedtest-ads" >> $GOPATH/src/$REPO_URL/data/ookla-speedtest
- name: Build geosite.dat file