Skip to content

Commit

Permalink
scripts/bindhosts: print operating mode
Browse files Browse the repository at this point in the history
this also reorders find_rwdir placement
  • Loading branch information
backslashxx committed Dec 17, 2024
1 parent ec2d206 commit f575155
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/bindhosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ echo "[+] bindhosts v$versionCode"
echo "[%] bindhosts.sh"
echo "[%] standalone hosts-based-adblocking implementation"

find_rwdir
echo "[ ] rwdir: $rwdir"

[ -f $MODDIR/disable ] && {
echo "[*] not running since module has been disabled"
string="description=status: disabled ❌ | $(date)"
Expand Down Expand Up @@ -58,6 +55,9 @@ case $operating_mode in
*) true ;; # catch invalid modes
esac

find_rwdir
echo "[%] mode: $operating_mode | rwdir: $rwdir "

# check hosts file if writable, if not, warn and exit
if [ ! -w $target_hostsfile ] ; then
# no fucking way
Expand Down

0 comments on commit f575155

Please sign in to comment.