mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-22 14:23:53 -07:00
Polished the document
This commit is contained in:
parent
7c5387d58c
commit
eb38af7083
1 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,12 @@
|
||||||
This docker image wraps [shellcheck](https://github.com/koalaman/shellcheck) as a single executable.
|
This docker image wraps [shellcheck](https://github.com/koalaman/shellcheck) as a single executable.
|
||||||
|
|
||||||
How to use it? For example, you have a shell script named `sample.sh` under the current directory, you can lint it by running:
|
## Build the image
|
||||||
|
|
||||||
|
cd shellcheck/docker
|
||||||
|
docker build -t shellcheck .
|
||||||
|
|
||||||
|
## How to use it
|
||||||
|
|
||||||
|
For example, you have a shell script named `sample.sh` under the current directory, you can lint it by running:
|
||||||
|
|
||||||
docker run -v $(pwd):/tmp/work shellcheck /tmp/work/sample.sh
|
docker run -v $(pwd):/tmp/work shellcheck /tmp/work/sample.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue