Skip to content

Commit

Permalink
bin: Add verifyraw
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Sep 29, 2023
1 parent d074134 commit aa4a388
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/verifyraw
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash -e

# 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
printf 'failed conversion: %s\n' "$file" >&2
exit 1
fi
done

0 comments on commit aa4a388

Please sign in to comment.