File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function block_content() {
140140 nuke_if_we_dont_have_internet
141141 if [ ! -f " ${cache_hosts} 1" ] || [ " $status " = " update" ]; then
142142 mkdir -p " $persist_dir /cache/$block_type "
143- log_message " Downloading hosts for $block_type ."
143+ log_message " Downloading hosts for $block_type ." && echo " - Downloading hosts for $block_type . "
144144 fetch " ${cache_hosts} 1" https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/${block_type} -only/hosts & > /dev/null
145145 if [ " $block_type " = " porn" ]; then
146146 fetch " ${cache_hosts} 2" https://raw.githubusercontent.com/johnlouie09/Anti-Porn-HOSTS-File/refs/heads/master/HOSTS.txt & > /dev/null &
@@ -171,18 +171,6 @@ function nuke_if_we_dont_have_internet() {
171171 ping -c 1 -w 5 raw.githubusercontent.com & > /dev/null || abort " Please check your internet connection and try again."
172172}
173173
174- function ask() {
175- local question=" $1 "
176- local answer
177- printf " - $question (y/n): "
178- read -r answer
179- if [ " $( tolower " $answer " ) " = " y" ]; then
180- return 0
181- else
182- return 1
183- fi
184- }
185-
186174# Fallback to busybox wget if curl binary is not available
187175function fetch() {
188176 PATH=/data/adb/ap/bin:/data/adb/ksu/bin:/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
You can’t perform that action at this time.
0 commit comments