mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-19 21:03:51 -07:00
Update README.md
Adding a usage example for Docker.
This commit is contained in:
parent
e8b4a79b65
commit
c2fcb742db
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue