Last active
March 29, 2017 08:15
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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