Environment variable name is the only thing needed for -e when the variable is already present in the current environment

Syahrial Agni Prasetya
2022-12-05 10:38:42 +07:00
parent 9805a17570
commit ceb874a8de

@@ -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+)