summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jh-checksource.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jh-checksource.sh b/jh-checksource.sh
index 7b4ded7..4fa16b1 100644
--- a/jh-checksource.sh
+++ b/jh-checksource.sh
@@ -82,7 +82,7 @@ main() {
fi
done > "$unsafe_files"
- if [[ -n "$(cat "$unsafe_files")" ]]; then
+ if [[ "$(stat -c '%s' -- "$unsafe_files")" > 0 ]]; then
<"$unsafe_files" sort | print-$format
exit 1
fi