From b54f0cb866907545fcb00132fd2732907c7946ec Mon Sep 17 00:00:00 2001 From: Kristoffer Minya <29523105+phenonymous@users.noreply.github.com> Date: Tue, 6 Nov 2018 23:39:32 +0100 Subject: [PATCH] Update gogh.sh --- gogh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gogh.sh b/gogh.sh index fd6afe9..f11c76a 100755 --- a/gogh.sh +++ b/gogh.sh @@ -317,7 +317,7 @@ fi # | # | If terminal supports truecolor then we can show theme colors without applying the theme # | =========================================== -if [[ "$COLORTERM" == "truecolor" ]] || [[ "$COLORTERM" == "24bit" ]]; then +if [[ "${COLORTERM:-}" == "truecolor" ]] || [[ "${COLORTERM:-}" == "24bit" ]]; then # This function gets called in apply-colors.sh instead of gogh_colors # Calls to gogh_colors has also been move to apply-colors.sh to avoid printing twice function gogh_truecolor () { @@ -362,4 +362,4 @@ for OP in "${OPTION[@]#0}"; do echo -e "\\033[0m\033[0;31m ~ INVALID OPTION! ~\\033[0m\033[0m" exit 1 fi -done \ No newline at end of file +done