mirror of
https://gitlab.com/robocopAlpha/pihole_lists.git
synced 2026-05-18 02:42:25 -07:00
13 lines
577 B
Bash
Executable file
13 lines
577 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Facebook & Whatsapp
|
|
|
|
[[ -f set_env.sh ]] && source set_env.sh || { echo "set_env.sh not found"; exit 1; }
|
|
|
|
rg -FINv "whatsapp" "${WRK_DIR}/Mirrors/facebook_block.txt" >| "${WRK_DIR}/Mirrors/tmp.txt"
|
|
rg -FIN "whatsapp" "${WRK_DIR}/Mirrors/facebook_block.txt" | rg -FIN "facebook" >> "${WRK_DIR}/Mirrors/tmp.txt"
|
|
rm -f "${WRK_DIR}/Mirrors/facebook_block.txt"
|
|
sort -u "${WRK_DIR}/Mirrors/tmp.txt" | uniq > "${WRK_DIR}/facebook_block.txt"
|
|
rm -f "${WRK_DIR}/Mirrors/tmp.txt"
|
|
Line_Count=$(wc -l "${WRK_DIR}/facebook_block.txt")
|
|
echo -e "${Line_Count} domains"
|
|
|