mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 16:26:26 +08:00
Update README.md
Adding a usage example for Docker.
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user