From 24141cdcb94999db1cea170a910aa47db560f14d Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Mon, 16 Dec 2019 08:30:36 +0100 Subject: [PATCH] Fix test for using colours in stdout --- b2-backup.sh | 2 +- backup.sh | 2 +- registry-cleaner.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/b2-backup.sh b/b2-backup.sh index c60c648..b36a9c2 100755 --- a/b2-backup.sh +++ b/b2-backup.sh @@ -5,7 +5,7 @@ set -ue CYAN='\033[01;36m' NC='\033[00m' -if [ -t 1 ]; then +if [ ! -t 1 ]; then CYAN='' NC='' fi diff --git a/backup.sh b/backup.sh index 3e66fba..282681e 100755 --- a/backup.sh +++ b/backup.sh @@ -8,7 +8,7 @@ YELLOW='\033[01;33m' CYAN='\033[01;36m' NC='\033[00m' -if [ -t 1 ]; then +if [ ! -t 1 ]; then RED='' GREEN='' YELLOW='' diff --git a/registry-cleaner.sh b/registry-cleaner.sh index c9f70f7..db5ba35 100755 --- a/registry-cleaner.sh +++ b/registry-cleaner.sh @@ -5,7 +5,7 @@ set -e CYAN='\033[01;36m' NC='\033[00m' -if [ -t 1 ]; then +if [ ! -t 1 ]; then CYAN='' NC='' fi