;bin:hledger-bar: fix an error when NO_COLOR is not defined [#2159]

This commit is contained in:
Simon Michael 2024-01-22 11:28:13 -10:00
parent d8addd5926
commit 0f30316cfd

View File

@ -78,7 +78,7 @@ poschar="+"
# https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit and 24-bit colors.
# Disable if stdout is not a terminal or NO_COLOR is defined.
if [[ ! -t 1 || -v $NO_COLOR ]]; then
if [[ ! -t 1 || -v ]]; then
red=''
green=''
nocol=''