Skip to content

Instantly share code, notes, and snippets.

@lawrencegripper
Created July 29, 2019 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawrencegripper/2abfb2580d81ef35b2fccbe4b4884009 to your computer and use it in GitHub Desktop.
Save lawrencegripper/2abfb2580d81ef35b2fccbe4b4884009 to your computer and use it in GitHub Desktop.
azure devops running shellcheck
- bash: |
echo "This checks for formatting and common bash errors. See wiki for error details and ignore options: https://github.com/koalaman/shellcheck/wiki/SC1000"
export scversion="stable"
wget -qO- "https://storage.googleapis.com/shellcheck/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv
sudo mv "shellcheck-${scversion}/shellcheck" /usr/bin/
rm -r "shellcheck-${scversion}"
shellcheck ./scripts/*.sh
displayName: "Validate Scripts: Shellcheck"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment