Fix test for using colours in stdout

This commit is contained in:
Wojciech Kozlowski 2019-12-16 08:30:36 +01:00
parent 1d22614029
commit 24141cdcb9
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ set -ue
CYAN='\033[01;36m'
NC='\033[00m'
if [ -t 1 ]; then
if [ ! -t 1 ]; then
CYAN=''
NC=''
fi

View File

@ -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=''

View File

@ -5,7 +5,7 @@ set -e
CYAN='\033[01;36m'
NC='\033[00m'
if [ -t 1 ]; then
if [ ! -t 1 ]; then
CYAN=''
NC=''
fi