summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2019-06-12 22:02:50 +0200
committerlookshe <github@lookshe.org>2019-06-12 22:02:50 +0200
commite85bcc457ccaa3c17fed79396d27492dc7e496bd (patch)
treedfe8cae0cb3bb2f4a3282be0d8ad46946c023df9
parentefaa44fdbbbe8dfe9bf3718186eb71dd81199ab1 (diff)
replace CRLF with LF after downloading files
-rwxr-xr-xretrieveAdBlocklists.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/retrieveAdBlocklists.sh b/retrieveAdBlocklists.sh
index 38643c0..798c227 100755
--- a/retrieveAdBlocklists.sh
+++ b/retrieveAdBlocklists.sh
@@ -1,3 +1,4 @@
#!/bin/bash
rm -rf adlists/*
awk -F'|' '{system("wget -q -O adlists/" $1 " " $2)}' adfilelist.txt
+perl -pi -e 's/\r\n/\n/g' adlists/*