mirror of
https://codeberg.org/h3xx/you-dont-need-pihole.git
synced 2024-08-14 20:27:01 +00:00
Replace elaborate wget with git repo
This commit is contained in:
parent
d1edd1d520
commit
c03f0c8d37
5 changed files with 7 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1 @@
|
||||||
/lists/StevenBlack-all.hosts
|
|
||||||
block.list
|
block.list
|
||||||
|
|
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[submodule "repos/StevenBlack-hosts"]
|
||||||
|
path = repos/StevenBlack-hosts
|
||||||
|
url = https://github.com/StevenBlack/hosts.git
|
||||||
|
branch = master
|
1
repos/StevenBlack-hosts
Submodule
1
repos/StevenBlack-hosts
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit df10691d81f5709fb71f5ac334d67e08a4b87443
|
|
@ -6,10 +6,6 @@ LIST_DIR=$WORKDIR/lists
|
||||||
OUT=()
|
OUT=()
|
||||||
URL=()
|
URL=()
|
||||||
|
|
||||||
# StevenBlack comprehensive host list (all)
|
|
||||||
OUT+=("$LIST_DIR/StevenBlack-all.hosts")
|
|
||||||
URL+=('https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts')
|
|
||||||
|
|
||||||
# Individual hosts lists in that collection
|
# Individual hosts lists in that collection
|
||||||
#OUT+=("$LIST_DIR/sb-Badd-Boyz-Hosts.hosts")
|
#OUT+=("$LIST_DIR/sb-Badd-Boyz-Hosts.hosts")
|
||||||
#URL+=('https://raw.githubusercontent.com/StevenBlack/hosts/master/data/Badd-Boyz-Hosts/hosts')
|
#URL+=('https://raw.githubusercontent.com/StevenBlack/hosts/master/data/Badd-Boyz-Hosts/hosts')
|
||||||
|
|
|
@ -14,6 +14,8 @@ cleanup() {
|
||||||
}
|
}
|
||||||
trap 'cleanup' EXIT
|
trap 'cleanup' EXIT
|
||||||
|
|
||||||
|
(cd "$WORKDIR" && git submodule update --init --remote)
|
||||||
|
|
||||||
for (( I = 0 ; I < ${#OUT[@]} ; ++I )); do
|
for (( I = 0 ; I < ${#OUT[@]} ; ++I )); do
|
||||||
MY_URL=${URL[$I]}
|
MY_URL=${URL[$I]}
|
||||||
MY_OUT=${OUT[$I]}
|
MY_OUT=${OUT[$I]}
|
||||||
|
|
Loading…
Reference in a new issue