Update README.md

Adding a usage example for Docker.
This commit is contained in:
Robert de Bock 2017-01-06 06:04:00 +01:00 committed by koalaman
parent e8b4a79b65
commit c2fcb742db
1 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,12 @@ From Docker Hub:
docker pull koalaman/shellcheck docker pull koalaman/shellcheck
Using the Docker image can be done like so:
docker run -v $(pwd):/scripts koalaman/shellcheck /sripts/myscript.sh
Here the local directory ( $(pwd) ) is mounted into the containers directory "/scripts". The script "myscript.sh" is checked.
## Compiling from source ## Compiling from source
This section describes how to build ShellCheck from a source directory. ShellCheck is written in Haskell and requires 2GB of RAM to compile. This section describes how to build ShellCheck from a source directory. ShellCheck is written in Haskell and requires 2GB of RAM to compile.