-
-
Notifications
You must be signed in to change notification settings - Fork 45
Lint bash scripts #232
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
base: master
Are you sure you want to change the base?
Lint bash scripts #232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good idea, it will help us keep the scripts to a higher standard, and hopefully catch subtle bugs or syntax issues.
However the changes thus far might have som side effects. I've dotted down a few findings.
I tested what I can with podman. So if someone else can also test with docker that would be great. |
Add a github action to lint all the bash scripts.
I'm not sure if this is ok or if I'm out of line here since I had to make quite a bit of changes to the scripts to make the linter happy. The changes mostly have to do with the usage of double quotes and how conditions are written, there are no structural changes or changes to how everything works.
If we go through with this, which I personally think would be a good thing, I would like a thorough review of the changes first, preferably by multiple contributors. I also want to do further testing myself to make sure I did not unintentionally break anything before I consider this pull request ready to be merged.
Status
TODO list until no longer draft
podman
build-image.sh
script still worksentrypoint.sh
script still workspodman
docker
install.sh
script still worksrun_zwift.sh
script still worksupdate_zwift.sh
script still workszwift-auth.sh
script still workszwift.sh
script still workspodman
docker