Skip to content

Commit 46cc856

Browse files
fix the hosts lists and improve error handling
1 parent d840fa9 commit 46cc856

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# adblocking hosts lists
22
# format: name,url
3-
badmojr_1hosts,https://raw.githubusercontent.com/badmojr/1Hosts/master/Pro/hosts.txt
3+
badmojr_1hosts,https://raw.githubusercontent.com/badmojr/1Hosts/refs/heads/master/Lite/hosts.txt

update.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ while read -r line; do
7373
file=$(cut -d',' -f1 <<< "$line")
7474
url=$(cut -d',' -f2 <<< "$line")
7575
curl \
76+
--fail \
7677
-o hosts/"$file" \
7778
--etag-save hosts/"$file".etag \
7879
--etag-compare hosts/"$file".etag \

0 commit comments

Comments
 (0)