YETUS-1167. shellcheck null byte (#273)
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
diff --git a/precommit/src/main/shell/plugins.d/shellcheck.sh b/precommit/src/main/shell/plugins.d/shellcheck.sh
index 1d56a02..2057f11 100755
--- a/precommit/src/main/shell/plugins.d/shellcheck.sh
+++ b/precommit/src/main/shell/plugins.d/shellcheck.sh
@@ -120,7 +120,7 @@
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.