From 1d71908413e2e93eda40be2ab44b3fdcd751e6bc Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 12 May 2013 01:34:05 -0400 Subject: jh-checksource: optimize check that reports whether unsafe files were found --- jh-checksource.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jh-checksource.sh') 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 -- cgit v1.2.2