From 0f30316cfd15c85968ac77389b7a5672b29c4f0e Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 22 Jan 2024 11:28:13 -1000 Subject: [PATCH] ;bin:hledger-bar: fix an error when NO_COLOR is not defined [#2159] --- bin/hledger-bar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hledger-bar b/bin/hledger-bar index 699aaaedb..8a7e0d421 100755 --- a/bin/hledger-bar +++ b/bin/hledger-bar @@ -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=''