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

Embrace bashisms #972

Merged
merged 1 commit into from
Mar 29, 2022
Merged

Embrace bashisms #972

merged 1 commit into from
Mar 29, 2022

Conversation

basil
Copy link
Member

@basil basil commented Mar 29, 2022

The scripts in this repository use /bin/bash as their interpreter, and they use bashisms in some places but not in others. I think embracing bashisms consistently throughout a script makes the script easier to read. Articles like this point out that if you're going to be using bash(1) anyway, using its constructs like [[ over [ are generally safer and have fewer surprises.

@basil basil merged commit 9f58000 into jenkinsci:master Mar 29, 2022
@basil basil deleted the bash branch March 29, 2022 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants