ShellCheck is a static analysis tool for shell-scripts.
To check a single file, inside current working directory:
$ docker run -it --rm --name shellcheck -v "$(pwd):/mnt" augustohp/shellcheck 'file.sh'
To check all *.sh files, inside current working directory:
$ find "$(pwd) -type f -name '*.sh' | xargs docker run -it --rm --name shellcheck -v "$(pwd):/mnt" augustohp/shellcheck
Content type
Image
Digest
sha256:4645f9ebd…
Size
1.5 MB
Last updated
about 4 years ago
docker pull augustohp/shellcheck