Create a gist now

Instantly share code, notes, and snippets.

@gongo /shellcheck
Last active Mar 29, 2017

What would you like to do?
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