Skip to content

fix: install.sh in dumb TERM #587

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

Merged
merged 1 commit into from
Apr 21, 2024
Merged

Conversation

FabioAntunes
Copy link
Contributor

When $TERM is dumb the number of colours returned is -1 we end up with no values set for the colours.

To test this:

export TERM=dumb
sh -c "$(curl -sSL https://git.io/install-kubent)"

You should get an error regarding parameter expansion:

sh: 96: GREEN: parameter not set

This PR fixes the issue by initialising the variables no matter what.

@dark0dave dark0dave self-assigned this Apr 17, 2024
@dark0dave
Copy link
Collaborator

dark0dave commented Apr 17, 2024

Thanks!

@dark0dave dark0dave enabled auto-merge April 17, 2024 10:35
@dark0dave
Copy link
Collaborator

Can you run the pre-commit? @FabioAntunes

When $TERM is dumb the number of colours returned is -1 we end up with no values set for the colours.
auto-merge was automatically disabled April 17, 2024 13:20

Head branch was pushed to by a user without write access

@FabioAntunes
Copy link
Contributor Author

FabioAntunes commented Apr 17, 2024 via email

@dark0dave
Copy link
Collaborator

Thanks!

@dark0dave dark0dave enabled auto-merge April 20, 2024 12:40
@dark0dave dark0dave disabled auto-merge April 21, 2024 21:14
@dark0dave dark0dave merged commit 342ce7e into doitintl:master Apr 21, 2024
22 checks passed
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