summarylogtreecommitdiffstats
path: root/hostsblock-urlcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hostsblock-urlcheck.sh')
-rwxr-xr-xhostsblock-urlcheck.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/hostsblock-urlcheck.sh b/hostsblock-urlcheck.sh
index 3ef2bfe8503f..ff123483ab84 100755
--- a/hostsblock-urlcheck.sh
+++ b/hostsblock-urlcheck.sh
@@ -47,7 +47,13 @@ _set_subprocess_verbosity
_changed=0
echo "Checking to see if url is blocked or unblocked..."
_check_url $(echo "$@" | sed -e "s/.*https*:\/\///g" -e "s/[\/?'\" :<>\(\)].*//g")
-[ $_changed == 1 ] && postprocess &>/dev/null
+if [ $_changed == 1 ]; then
+ if [ $verbosity -ge 5 ]; then
+ postprocess
+ else
+ postprocess &>/dev/null
+ fi
+fi
read -p "Page domain verified. Scan the whole page for other domains for (un)blocking? [y/N] " a
if [[ $a == "y" || $a == "Y" ]]; then
for LINE in `curl -L --location-trusted -s "$@" | tr ' ' '\n' | grep "https*:\/\/" | sed -e "s/.*https*:\/\/\(.*\)$/\1/g" -e "s/\//\n/g" | grep "\." |\