Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore NO_COLOR if set to empty string #370

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

blyxxyz
Copy link
Collaborator

@blyxxyz blyxxyz commented Jun 4, 2024

Environment variables can have no value at all or they can have the empty string as a value. We used to disable color if $NO_COLOR were set at all, regardless of its value, but as of jcs/no_color@99f90e2 we should ignore empty strings (and this makes more sense).

Result: NO_COLOR= xh now allows colors.

Environment variables can have no value at all or they can have the
empty string as a value. We used to disable color if `$NO_COLOR` were
set at all, regardless of its value, but as of
jcs/no_color@99f90e2
we should ignore empty strings (and this makes more sense).

Result: `NO_COLOR= xh` now allows colors.
Copy link
Owner

@ducaale ducaale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ducaale ducaale merged commit 0d873a0 into ducaale:master Jun 4, 2024
9 checks passed
@blyxxyz blyxxyz deleted the ignore-empty-no-color branch June 8, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants