Skip to content

Commit

Permalink
verifyraw: Only print failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Dec 7, 2023
1 parent fa5f28e commit 74f99b9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/verifyraw
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
# Quick and dirty check to ensure all raw files are valid.

for file do
if convert "$file" jpg:- > /dev/null; then
printf 'ok: %s\n' "$file"
else
if ! convert "$file" jpg:- > /dev/null; then
printf 'failed conversion: %s\n' "$file" >&2
exit 1
fi
done

0 comments on commit 74f99b9

Please sign in to comment.