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

Make installing shellcheck more robust #79

Merged
merged 6 commits into from May 6, 2015
Merged

Conversation

hlangeveld
Copy link
Collaborator

Core functional change here is that we allow travis to fallback on a known, existing version in the debian shellcheck repository.

So now we work with a list of known versions of shellcheck, and a function get_shellcheck that
will download the first valid match and report the proper package name.

If no valid package can be downloaded, package name will be empty, and the install will abort.

Cosmetic changes:

  • Switch from Folding > to Literal | for multi-line shell chunks. I would expect folding to generate shell syntax errors, but I haven't seen any. Does travis interpret this yaml correctly?
  • Explain why we use shellcheck -s sh. It's the POSIX way.

else
time $SHELL bin/shpec shpec/shpec_shpec.sh
fi
- |
Copy link
Collaborator

Choose a reason for hiding this comment

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

@hlangeveld - yer | seems safer. 👍

Restores `if ... then ... else ... ` and reverts to `elif ...`
in the LINT or SHELL shpec run.

This reverts commit aac5ee0, but keeps the sh -> POSIX comment.

Cosmetic: remove trailing whitespace
@rylnd
Copy link
Owner

rylnd commented May 6, 2015

Looks good to me!

rylnd added a commit that referenced this pull request May 6, 2015
Make installing `shellcheck` more robust
@rylnd rylnd merged commit 577ba37 into rylnd:master May 6, 2015
@hlangeveld hlangeveld deleted the shellcheck branch May 6, 2015 11:11
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

3 participants