Skip to content

Commit a2ff6ec

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 530a062 commit a2ff6ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/csv_import.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ 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"
52+
echo "rfc954"
5253

5354
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"
55+
fetch "$url" | awk '/localhost/{next}; /^(#|$)/{ next }; { printf("%s\n",tolower($1)) | "sort -i | uniq -u -i " }' | more #>"${git_dir}/test/data/$name.csv"
5556
fi
5657
echo "imported $name"
5758
echo ""

0 commit comments

Comments
 (0)