From dc46aa1b7360a681236b438b992684e3be97f03c Mon Sep 17 00:00:00 2001 From: loyalsoldier Date: Sat, 25 Jan 2020 18:51:30 +0800 Subject: [PATCH] Fix awk command --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26c3d449..71889398 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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