mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 22:55:10 +01:00
Check if pictures are found first
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exiv2 -T ./*.{CR2,jpg}
|
if [ $(find . -name '*.CR2' | wc -l) -gt 0 ]; then
|
||||||
|
echo "CR2 found, fixing"
|
||||||
|
exiv2 -T ./*.CR2
|
||||||
|
fi
|
||||||
|
if [ $(find . -name '*.jpg' | wc -l) -gt 0 ]; then
|
||||||
|
echo "jpg found, fixing"
|
||||||
|
exiv2 -T ./*.jpg
|
||||||
|
fi
|
||||||
exit
|
exit
|
||||||
|
|
||||||
# old, slower method:
|
# old, slower method:
|
||||||
|
|||||||
Reference in New Issue
Block a user