;bin:hledger-bar: fix an error when NO_COLOR is not defined [#2159]
This commit is contained in:
parent
d8addd5926
commit
0f30316cfd
@ -78,7 +78,7 @@ poschar="+"
|
|||||||
|
|
||||||
# https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit and 24-bit colors.
|
# 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.
|
# 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=''
|
red=''
|
||||||
green=''
|
green=''
|
||||||
nocol=''
|
nocol=''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user