mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Environment variable name is the only thing needed for -e
when the variable is already present in the current environment
@@ -61,7 +61,7 @@ export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090"
|
|||||||
and then pass it to Docker:
|
and then pass it to Docker:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -e SHELLCHECK_OPTS="$SHELLCHECK_OPTS" -v "$PWD:/mnt" koalaman/shellcheck myscript
|
docker run -e SHELLCHECK_OPTS -v "$PWD:/mnt" koalaman/shellcheck myscript
|
||||||
```
|
```
|
||||||
|
|
||||||
### Ignoring all instances in a file (0.4.4+)
|
### Ignoring all instances in a file (0.4.4+)
|
||||||
|
Reference in New Issue
Block a user