-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Upgrade Shellcheck (fixes #34) #37
Conversation
|
||
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv | ||
sudo cp "shellcheck-${scversion}/shellcheck" /usr/bin/ | ||
cp "shellcheck-${scversion}/shellcheck" /usr/local/bin |
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.
Nice 💯
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.
Interesting side-note ~ check out the shellcheck-alpine image. They also seem to remove the shellcheck-${tag} folder
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 like the idea of a cleaning up the unnecessary files/folders post installation! Made the change in our script as well!
src/install_shellcheck.sh
Outdated
@@ -1,8 +1,8 @@ | |||
#! /bin/bash | |||
#!/bin/bash | |||
|
|||
# Update shellcheck to the locked v0.7.0 version through the binary distribution |
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.
Should we update this comment? Might be a good practice to indicate why we're updating?
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.
Good catch!! I actually removed the comment from the script because in general we shouldn't always have a reason to upgrade. It's a good practice to use the latest stable version. With that said, if we ever need to lock down the shellchck version to something older than the latest version, then we need to leave a comment.
…ck version. Also upgraded the base image used in the Shell Linter's Dockerfile.
…ck installation script
…d use the right script
…s it is not managed by the distribution and we won't need to use sudo in the script
…n by removing the shellcheck folder after the shellcheck executable is added to the path
7f71087
to
e498b4f
Compare
Pull Request Checklist
Corresponding Issue
Description of Change
Motivation and Context
Testing Steps
Risks
Additional Information