Skip to content

Commit 4fcda6b

Browse files
committed
Test of source.csv and csv_import.sh v0.0.15
empty files!!! --------- Thanks to Jetbrains for Sponsoring My Privacy DNS with their Open Source software licenses. Their software helps us develop and maintain My Privacy DNS and other project as they made writing code easier.
1 parent 6a8b216 commit 4fcda6b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

scripts/csv_import.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ while IFS="," read -r name type url; do
4848
mkdir -p "${git_dir}/test/data/"
4949

5050
if [ "$type" == rfc954 ]; then
51-
fetch "$url" | awk '/localhost/{next}; /^(#|$)/{ next }; { if ( $1 ~ /^[0-9]/ ) printf("%s\n",tolower($2)) | "sort -i | uniq -u -i " }' >"${git_dir}/test/data/$name.csv"
51+
fetch "$url" | awk '/localhost/{next}; /^(#|$)/{ next }; { if ( $1 ~ /^[0-9]/ ) printf("%s\n",tolower($2)) | "sort -i | uniq -u -i " }' #>"${git_dir}/test/data/$name.csv"
5252

5353
elif [ "$type" == 'domain' ]; then
54-
fetch "$url" | awk '/localhost/{next}; /^(#|$)/{ next }; { printf("%s\n",tolower($1)) | "sort -i | uniq -u -i " }' >"${git_dir}/test/data/$name.csv"
54+
fetch "$url" | awk '/localhost/{next}; /^(#|$)/{ next }; { printf("%s\n",tolower($1)) | "sort -i | uniq -u -i " }' #>"${git_dir}/test/data/$name.csv"
5555
fi
5656
echo "imported $name"
5757
echo ""

scripts/import.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ echo "always be in your favour :smirk:"
309309
# First party trackers only
310310
echo "Importing Geoffrey Frog eye's block list of first-party trackers"
311311
mkdir -p "${git_dir}/data/frogeye/"{firstpart,firstpart2,thirdpart}
312-
ls -lha "${git_dir}/data/frogeye/"
313312
${WGET} -q https://hostfiles.frogeye.fr/firstparty-trackers.txt -O "${git_dir}/data/frogeye/firstpart/domain.csv"
314313
${WGET} -q https://hostfiles.frogeye.fr/firstparty-only-trackers.txt -O "${git_dir}/data/frogeye/firstpart2/domain.csv"
315314
${WGET} -q https://hostfiles.frogeye.fr/multiparty-only-trackers.txt -O "${git_dir}/data/frogeye/thirdpart/domain.csv"

0 commit comments

Comments
 (0)