From 5475d77b7a5191bf71512f18361ab6fd5f68f89a Mon Sep 17 00:00:00 2001 From: "Matthieu Baerts (NGI0)" Date: Fri, 23 Feb 2024 20:52:04 +0100 Subject: [PATCH] shellcheck: fix redirection Issues are all reported to stderr. Signed-off-by: Matthieu Baerts (NGI0) --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 00a6ce2..1ab5781 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -688,7 +688,7 @@ _shellcheck() { local dname fname workdir workdir="${PWD}" cd "${dname}" - /usr/bin/shellcheck -x "${fname}" | tee "${TMPFILE}" >&2 + /usr/bin/shellcheck -x "${fname}" 2>&1 | tee "${TMPFILE}" >&2 { echo -n " - ${fname}:" if [ -s "${TMPFILE}" ]; then