minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-04-02 18:42:38 +03:00
parent 8e3be4cfc5
commit 7253cd5246

View File

@ -54,13 +54,13 @@ _exifup(){
# XXX
for img in "${imgs[@]}" ; do
local name="${img%.jpg}"
local targets=($(find . -name "${name}.ARW"))
local targets=("$(find . -name "${name}.ARW")")
if [[ ${#targets[@]} > 1 ]] ; then
# XXX multiple candidates -> select one...
# XXX
fi
# XXX
exiv2 ex ${target[0]}
exiv2 ex "${target[0]}"
mv "${target[0]%.ARW}.exv" .
exiv2 -k in "${img}"
rm -f *.exv