Skip to content

Commit

Permalink
shellcheck: fix redirection
Browse files Browse the repository at this point in the history
Issues are all reported to stderr.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Feb 23, 2024
1 parent d095260 commit 5475d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5475d77

Please sign in to comment.