Skip to content

Commit 8d19acb

Browse files
committed
rmlwk: added missing code related to social block
1 parent 9297407 commit 8d19acb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

module/system/bin/rmlwk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function block_content() {
142142
nuke_if_we_dont_have_internet
143143
if [ ! -f "${cache_hosts}1" ] || [ "$status" = "update" ]; then
144144
mkdir -p "$persist_dir/cache/$block_type"
145-
log_message "Downloading hosts for $block_type." && echo "- Downloading hosts for $block_type."
145+
echo "- Downloading hosts for $block_type."
146146
fetch "${cache_hosts}1" https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/${block_type}-only/hosts &>/dev/null
147147
if [ "$block_type" = "porn" ]; then
148148
fetch "${cache_hosts}2" https://raw.githubusercontent.com/johnlouie09/Anti-Porn-HOSTS-File/refs/heads/master/HOSTS.txt &>/dev/null &
@@ -332,6 +332,7 @@ case "$(tolower "$1")" in
332332
[ "$block_porn" = 1 ] && block_content "porn" && log_message "Updating porn sites blocklist..."
333333
[ "$block_gambling" = 1 ] && block_content "gambling" && log_message "Updating gambling sites blocklist..."
334334
[ "$block_fakenews" = 1 ] && block_content "fakenews" && log_message "Updating Fake news sites blocklist..."
335+
[ "$block_social" = 1 ] && block_content "social" && log_message "Updating Social sites blocklist..."
335336
update_status
336337
log_message "Successfully updated hosts."
337338
echo "- Done."

0 commit comments

Comments
 (0)