Skip to content

Commit 05b5759

Browse files
committed
Merge branch 'main' of github.com:ZG089/Re-Malwack
2 parents e8f06ed + 6a3cdfc commit 05b5759

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

module/system/bin/rmlwk

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff 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
187175
function fetch() {
188176
PATH=/data/adb/ap/bin:/data/adb/ksu/bin:/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH

0 commit comments

Comments
 (0)