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

Fix shellcheck violations and remove trailing semicolons #2

Merged
merged 1 commit into from
Jan 2, 2019
Merged

Fix shellcheck violations and remove trailing semicolons #2

merged 1 commit into from
Jan 2, 2019

Conversation

Mange
Copy link
Contributor

@Mange Mange commented Jan 1, 2019

Most of the issues flagged were about missing quotes, but there were also some cases of unneeded uses of $?, which is easy to break on refactoring. It's much better to merge the if with the command so they are not broken apart by some other command.

Trailing semicolons are also not a shellscript idiom, so that was removed.

Most of the issues flagged were about missing quotes, but there were
also some cases of unneeded uses of `$?`, which is easy to break on
refactoring. It's much better to merge the `if` with the command so
they are not broken apart by some other command.

Trailing semicolons are also not a shellscript idiom, so that was
removed.
@Mange Mange mentioned this pull request Jan 1, 2019
@mattydebie
Copy link
Owner

Hi @Mange, thanks for improving this script! Did not think about checking it with shellcheck.. :p

@mattydebie mattydebie merged commit 4ace861 into mattydebie:master Jan 2, 2019
@Mange Mange deleted the shellcheck-fixes branch January 3, 2019 15:22
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.

None yet

2 participants