Skip to content

Commit 29c5e60

Browse files
authored
Merge pull request #610 from DannyBen/fix/no-color-spec
fix(colors): only print colors if NO_COLOR is non-empty string
2 parents 4fa73db + ec65bee commit 29c5e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bashly/libraries/colors/colors.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
print_in_color() {
1414
local color="$1"
1515
shift
16-
if [[ -z ${NO_COLOR+x} ]]; then
16+
if [[ "${NO_COLOR:-}" == "" ]]; then
1717
printf "$color%b\e[0m\n" "$*"
1818
else
1919
printf "%b\n" "$*"

0 commit comments

Comments
 (0)