From ceb874a8defc0df77b285e4fc54f897ed9dbb231 Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Mon, 5 Dec 2022 10:38:42 +0700 Subject: [PATCH] Environment variable name is the only thing needed for `-e` when the variable is already present in the current environment --- Ignore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ignore.md b/Ignore.md index 2dd15ed..a52294b 100644 --- a/Ignore.md +++ b/Ignore.md @@ -61,7 +61,7 @@ export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090" and then pass it to Docker: ```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+)