You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@yetus.apache.org by aw...@apache.org on 2022/05/03 18:26:02 UTC
[yetus] branch main updated: YETUS-1167. shellcheck null byte (#273)
This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus.git
The following commit(s) were added to refs/heads/main by this push:
new 81f581b8 YETUS-1167. shellcheck null byte (#273)
81f581b8 is described below
commit 81f581b85a8d526ca006dc83666cb4f5521e236c
Author: Allen Wittenauer <aw...@apache.org>
AuthorDate: Tue May 3 11:25:57 2022 -0700
YETUS-1167. shellcheck null byte (#273)
Signed-off-by: Nick Dimiduk <nd...@apache.org>
---
precommit/src/main/shell/plugins.d/shellcheck.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/precommit/src/main/shell/plugins.d/shellcheck.sh b/precommit/src/main/shell/plugins.d/shellcheck.sh
index 1d56a028..2057f11b 100755
--- a/precommit/src/main/shell/plugins.d/shellcheck.sh
+++ b/precommit/src/main/shell/plugins.d/shellcheck.sh
@@ -120,7 +120,7 @@ function shellcheck_criteria
fi
done
- text=$(head -n 1 "${fn}")
+ text=$(head -n 1 "${fn}" 2>/dev/null)
# shell check requires either a bangpath or a shellcheck directive
# on the first line.