mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
;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.
|
||||
# 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=''
|
||||
|
Loading…
Reference in New Issue
Block a user