Skip to content

Instantly share code, notes, and snippets.

@gongo
Last active March 29, 2017 08:15
Show Gist options
  • Save gongo/5028eabe139f01f4e3d2e05e6633fb1f to your computer and use it in GitHub Desktop.
Save gongo/5028eabe139f01f4e3d2e05e6633fb1f to your computer and use it in GitHub Desktop.
Shellcheck wrapper using Docker image http://gongo.hatenablog.com/entry/2017/03/28/223757
#!/bin/sh
(
dir="$(cd "$(dirname "$1")" && pwd)"
name="$(basename "$1")"
docker run --rm -v "${dir}:/scripts" koalaman/shellcheck "/scripts/${name}"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment