diff --git a/dev-tools/generate-files.sh b/dev-tools/generate-files.sh index 1030ee85059..b9939eac7c0 100755 --- a/dev-tools/generate-files.sh +++ b/dev-tools/generate-files.sh @@ -43,7 +43,6 @@ set -e set -o pipefail -#export TERM=xterm export TERM=linux # ------------------------ @@ -57,7 +56,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -#defaultcolor=$(tput setaf 7) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/generate-google-disavow.sh b/dev-tools/generate-google-disavow.sh index dfc408c320d..cdad87cacf6 100755 --- a/dev-tools/generate-google-disavow.sh +++ b/dev-tools/generate-google-disavow.sh @@ -43,10 +43,11 @@ export TERM=xterm # SOFTWARE. # ------------------------------------------------------------------------------ +export TERM=linux + # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +56,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # Variables diff --git a/dev-tools/generate-robots.sh b/dev-tools/generate-robots.sh index 6a467902cd2..65f6a2b2b11 100755 --- a/dev-tools/generate-robots.sh +++ b/dev-tools/generate-robots.sh @@ -45,12 +45,11 @@ set -e set -o pipefail -export TERM=xterm +export TERM=linux # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -59,7 +58,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # -------------- # File Variables diff --git a/dev-tools/install-nginx-1.sh b/dev-tools/install-nginx-1.sh index 9ec091b32f5..f32515e66d6 100755 --- a/dev-tools/install-nginx-1.sh +++ b/dev-tools/install-nginx-1.sh @@ -18,7 +18,6 @@ set -e set -o pipefail -#export TERM=xterm export TERM=linux # ------------------------------------------------------------------------------ diff --git a/dev-tools/install-nginx-2.sh b/dev-tools/install-nginx-2.sh index 5f6323d227a..15e24469932 100755 --- a/dev-tools/install-nginx-2.sh +++ b/dev-tools/install-nginx-2.sh @@ -16,7 +16,7 @@ # # ############################################################################## -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -46,7 +46,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/install-nginx-3.sh b/dev-tools/install-nginx-3.sh index 49f3511aa12..92eb8b85cd5 100755 --- a/dev-tools/install-nginx-3.sh +++ b/dev-tools/install-nginx-3.sh @@ -16,7 +16,7 @@ # # ############################################################################## -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -46,7 +46,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/modify-config-readme-files.sh b/dev-tools/modify-config-readme-files.sh index 646a9dae13b..7a77678717c 100755 --- a/dev-tools/modify-config-readme-files.sh +++ b/dev-tools/modify-config-readme-files.sh @@ -43,10 +43,11 @@ export TERM=xterm # SOFTWARE. # ------------------------------------------------------------------------------ +export TERM=linux + # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +56,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # Variables diff --git a/dev-tools/modify-files-and-commit.sh b/dev-tools/modify-files-and-commit.sh index 039ea200121..9d077d96e70 100755 --- a/dev-tools/modify-files-and-commit.sh +++ b/dev-tools/modify-files-and-commit.sh @@ -18,7 +18,7 @@ set -e set -o pipefail -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -48,7 +48,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -57,7 +56,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # Variables diff --git a/dev-tools/prepare-robots-input.sh b/dev-tools/prepare-robots-input.sh index 73f98e6d1d3..84fecee9073 100755 --- a/dev-tools/prepare-robots-input.sh +++ b/dev-tools/prepare-robots-input.sh @@ -41,12 +41,11 @@ # SOFTWARE. # ------------------------------------------------------------------------------ -export TERM=xterm +export TERM=linux # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # ------------------------------ # Specify Input and Output Files diff --git a/dev-tools/test-blocker-badwords.sh b/dev-tools/test-blocker-badwords.sh index 5e9ff8f64b4..9afcf02efd5 100755 --- a/dev-tools/test-blocker-badwords.sh +++ b/dev-tools/test-blocker-badwords.sh @@ -16,7 +16,7 @@ # # ############################################################################## -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -46,7 +46,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/test-blocker-false-positives.sh b/dev-tools/test-blocker-false-positives.sh index fc6ccd0680b..ad06c8c9e7b 100755 --- a/dev-tools/test-blocker-false-positives.sh +++ b/dev-tools/test-blocker-false-positives.sh @@ -41,7 +41,7 @@ # SOFTWARE. # ------------------------------------------------------------------------------ -export TERM=xterm +export TERM=linux # ------------------------------------------- # For Testing REGEX and False Positives Cases @@ -51,6 +51,11 @@ export TERM=xterm # Set Terminal Font Colors # ------------------------ +export TERM=linux + +# ------------------------ +# Set Terminal Font Colors +# ------------------------ bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -59,7 +64,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # ----------------------------- # USER-AGENT ARRAY - MUST MATCH diff --git a/dev-tools/test-blocker-quick.sh b/dev-tools/test-blocker-quick.sh index f8f6fbfde37..a61cd0bdfda 100755 --- a/dev-tools/test-blocker-quick.sh +++ b/dev-tools/test-blocker-quick.sh @@ -43,10 +43,11 @@ export TERM=xterm # SOFTWARE. # ------------------------------------------------------------------------------ +export TERM=linux + # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +56,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/test-blocker-rate-limiting.sh b/dev-tools/test-blocker-rate-limiting.sh index 040f6b58138..4bcb748eee0 100755 --- a/dev-tools/test-blocker-rate-limiting.sh +++ b/dev-tools/test-blocker-rate-limiting.sh @@ -16,7 +16,7 @@ # # ############################################################################## -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -46,7 +46,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/test-blocker-whitelist-domains.sh b/dev-tools/test-blocker-whitelist-domains.sh index 0505f485dee..8bb3fefd8e9 100755 --- a/dev-tools/test-blocker-whitelist-domains.sh +++ b/dev-tools/test-blocker-whitelist-domains.sh @@ -16,7 +16,7 @@ # # ############################################################################## -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -46,7 +46,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/test-blocker-whitelist-ips.sh b/dev-tools/test-blocker-whitelist-ips.sh index f6a5b5992d4..89a0f1c7bd7 100755 --- a/dev-tools/test-blocker-whitelist-ips.sh +++ b/dev-tools/test-blocker-whitelist-ips.sh @@ -16,7 +16,7 @@ # # ############################################################################## -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -46,7 +46,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,8 +54,8 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) -#thisip=$(dig +short myip.opendns.com @resolver1.opendns.com) +defaultcolor=$(tput setaf 7) + thisip=$(ip -o route get to 8.8.8.8 | sed -n 's/.*src \([0-9.]\+\).*/\1/p') # --------- diff --git a/dev-tools/test-blocker-whitelist.sh b/dev-tools/test-blocker-whitelist.sh index b32271783d5..4e91ad00a35 100755 --- a/dev-tools/test-blocker-whitelist.sh +++ b/dev-tools/test-blocker-whitelist.sh @@ -16,7 +16,7 @@ # # ############################################################################## -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -46,7 +46,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/test-nginx-2.sh b/dev-tools/test-nginx-2.sh index 5be10c2f5d8..bf972b2e974 100755 --- a/dev-tools/test-nginx-2.sh +++ b/dev-tools/test-nginx-2.sh @@ -16,7 +16,7 @@ # # ############################################################################## -export TERM=xterm +export TERM=linux # ------------------------------------------------------------------------------ # MIT License @@ -46,7 +46,6 @@ export TERM=xterm # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/test-nginx-3.sh b/dev-tools/test-nginx-3.sh index d78bc2a67f2..72fc7e8cc60 100755 --- a/dev-tools/test-nginx-3.sh +++ b/dev-tools/test-nginx-3.sh @@ -41,12 +41,11 @@ # SOFTWARE. # ------------------------------------------------------------------------------ -export TERM=xterm +export TERM=linux # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/test-setupngxblocker.sh b/dev-tools/test-setupngxblocker.sh index b12020d387e..1e6483f23f8 100755 --- a/dev-tools/test-setupngxblocker.sh +++ b/dev-tools/test-setupngxblocker.sh @@ -41,12 +41,11 @@ # SOFTWARE. # ------------------------------------------------------------------------------ -export TERM=xterm +export TERM=linux # ------------------------ # Set Terminal Font Colors # ------------------------ - bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -55,7 +54,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # FUNCTIONS diff --git a/dev-tools/update-bad-ips.sh b/dev-tools/update-bad-ips.sh index e801bcbba49..f481e812c58 100755 --- a/dev-tools/update-bad-ips.sh +++ b/dev-tools/update-bad-ips.sh @@ -32,6 +32,11 @@ # Set Terminal Font Colors # ------------------------ +export TERM=linux + +# ------------------------ +# Set Terminal Font Colors +# ------------------------ bold=$(tput bold) red=$(tput setaf 1) green=$(tput setaf 2) @@ -40,7 +45,7 @@ blue=$(tput setaf 4) magenta=$(tput setaf 5) cyan=$(tput setaf 6) white=$(tput setaf 7) -defaultcolor=$(tput setaf default) +defaultcolor=$(tput setaf 7) # --------- # Variables