mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 10:23:27 +08:00
Update Docker instructions.
This commit is contained in:
@@ -129,9 +129,9 @@ From Docker Hub:
|
||||
|
||||
Using the Docker image can be done like so:
|
||||
|
||||
docker run -v $(pwd):/scripts koalaman/shellcheck /scripts/myscript.sh
|
||||
docker run -v "$PWD:/mnt" koalaman/shellcheck myscript
|
||||
|
||||
Here the local directory ( $(pwd) ) is mounted into the containers directory "/scripts". The script "myscript.sh" is checked.
|
||||
Here the current directory `$PWD` is mounted as the container's directory `/mnt`, which is ShellCheck's working directory in the image. The script `myscript` is checked.
|
||||
|
||||
## Compiling from source
|
||||
|
||||
|
Reference in New Issue
Block a user