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

install.sh: fix shellcheck and convert to sh #1912

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

tgross35
Copy link
Contributor

This fixes all errors from https://www.shellcheck.net/. Also change the shebang to POSIX sh, which helps improve compatibility (e.g. this can now run in Alpine contianers).

The only bash-specific thing was pipefail which is easy to ignore. Most of these other fixes are just SC2086, and remove the unused git variable.

Tested on an alpine docker image.

This fixes all errors from https://www.shellcheck.net/. Also change the shebang
to POSIX sh, which helps improve compatibility (e.g. this can now run in Alpine
contianers).
Copy link
Owner

@casey casey left a comment

Choose a reason for hiding this comment

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

LGTM!

@casey casey enabled auto-merge (squash) February 20, 2024 05:38
@casey
Copy link
Owner

casey commented Feb 20, 2024

I also added a CI lint step to run shellcheck on install.sh.

@casey casey merged commit 6d7df19 into casey:master Feb 20, 2024
5 checks passed
@tgross35 tgross35 deleted the patch-1 branch February 20, 2024 05:50
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