mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 17:14:13 +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
|
||||
|
||||
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
|
||||
|
||||
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