diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-22 12:12:29 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-22 12:12:29 -0600 |
commit | 75d2804167d3a7cfb5ec6cce6cd8cb8b57f8a82f (patch) | |
tree | 5f4ad55078c5c9bec13a63629ffd6aa6ff782ca2 /jh-checksource.sh | |
parent | 48819c69c2404f3edb203ab08401dac0f776fb78 (diff) |
'>'/'<' do lexicographic comparison, we want integerv0.5.1
Diffstat (limited to 'jh-checksource.sh')
-rw-r--r-- | jh-checksource.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jh-checksource.sh b/jh-checksource.sh index 23c3ada..518f172 100644 --- a/jh-checksource.sh +++ b/jh-checksource.sh @@ -68,7 +68,7 @@ main() { # Heavy lifting find . -type f -printf '%s %h/%f\n' | # find all files while read -r size file; do # filter out files smaller than $min_size - [[ $size < $min_size ]] || printf '%s\n' "$file" + [[ $size -lt $min_size ]] || printf '%s\n' "$file" done | xargs -d'\n' file --mime-type -r -F "$sep" | # identify the filetypes sed -r "s@(.*)${sep}\s*(.*)@\2:\1@" | # reformat the output to be easier to parse @@ -86,7 +86,7 @@ main() { fi done > "$unsafe_files" - if [[ "$(stat -c '%s' -- "$unsafe_files")" > 0 ]]; then + if [[ "$(stat -c '%s' -- "$unsafe_files")" -gt 0 ]]; then <"$unsafe_files" sort | print-$format exit 1 fi |