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