From 581c80326ee3cd62b012071ab73f7610b8dbbd41 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 26 May 2021 10:55:59 -0500 Subject: [PATCH] remove paging --- home.admin/config.scripts/internet.tor.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home.admin/config.scripts/internet.tor.sh b/home.admin/config.scripts/internet.tor.sh index 32a481646..f249e786e 100755 --- a/home.admin/config.scripts/internet.tor.sh +++ b/home.admin/config.scripts/internet.tor.sh @@ -260,14 +260,14 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then # check if Tor was already installed and is funtional echo "" - echo "*** Check if Tor service is functional ***" - torRunningTest=$(sudo systemctl status tor@default | grep -c "Active: active") + echo "# *** Check if Tor service is functional ***" + torRunningTest=$(sudo systemctl --no-pager status tor@default | grep -c "Active: active") #torRunningTest=$(curl --connect-timeout 30 --socks5-hostname "127.0.0.1:9050" https://check.torproject.org 2>/dev/null | grep -c "Congratulations. This browser is configured to use Tor.") if [ "${torRunningTest}" == "0" ]; then - echo "Tor not running (${torRunningTest})... proceed with switching to Tor." + echo "# Tor not running (${torRunningTest})... proceed with switching to Tor." echo "" else - echo "You are all good - Tor is already running." + echo "# You are all good - Tor is already running." echo "" exit 0 fi