diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-12 01:34:05 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-12 01:34:05 -0400 |
commit | 1d71908413e2e93eda40be2ab44b3fdcd751e6bc (patch) | |
tree | f9ea70bf974f861487b2739e8fc4975ef6782d94 | |
parent | 394619c675008ee376a4a32ebd1d617f52c9e3a3 (diff) |
jh-checksource: optimize check that reports whether unsafe files were found
-rw-r--r-- | jh-checksource.sh | 2 |
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 |