From 87c7e9a55602d4df3e4d88a38f9594ba7261d14b Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Wed, 14 Oct 2020 19:58:43 -0400 Subject: [PATCH] hack/prepare-for-integration-tests.sh: default COLORTERM for when not set Signed-off-by: Andrew Keesler --- hack/prepare-for-integration-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/prepare-for-integration-tests.sh b/hack/prepare-for-integration-tests.sh index f0eb92ca2..5e0296fd2 100755 --- a/hack/prepare-for-integration-tests.sh +++ b/hack/prepare-for-integration-tests.sh @@ -20,7 +20,7 @@ function tilt_mode() { function log_note() { GREEN='\033[0;32m' NC='\033[0m' - if [[ $COLORTERM =~ ^(truecolor|24bit)$ ]]; then + if [[ ${COLORTERM:-unknown} =~ ^(truecolor|24bit)$ ]]; then echo -e "${GREEN}$*${NC}" else echo "$*" @@ -30,7 +30,7 @@ function log_note() { function log_error() { RED='\033[0;31m' NC='\033[0m' - if [[ $COLORTERM =~ ^(truecolor|24bit)$ ]]; then + if [[ ${COLORTERM:-unknown} =~ ^(truecolor|24bit)$ ]]; then echo -e "🙁${RED} Error: $* ${NC}" else echo ":( Error: $*"