diff --git a/hugin-gopro-fusion/exif_batch.sh b/hugin-gopro-fusion/exif_batch.sh index 3a9f000b..d840a41c 100755 --- a/hugin-gopro-fusion/exif_batch.sh +++ b/hugin-gopro-fusion/exif_batch.sh @@ -34,13 +34,7 @@ function batch_exif_photos { file_assemblage_with_zero="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/assemblage_0$i.jpg" - if [ -f "$file" ] && [ -f "$file_assemblage" ]; then - echo "set the tags in assemblage $i from GF$filename.jpg" - exiftool -tagsFromFile "$file" $file $file_assemblage -overwrite_original - echo "updated the exift tags of $file_assemblage" - else - echo "batch_exif_photos: File $file does not exist." - fi + # test with previous zero if [ -f "$file_with_zero" ] && [ -f "$file_assemblage_with_zero" ]; then @@ -49,10 +43,20 @@ function batch_exif_photos { echo "updated the exift tags of $file_assemblage_with_zero" else echo "batch_exif_photos: File $file_with_zero does not exist." + if [ -f "$file" ] && [ -f "$file_assemblage" ]; then + echo "set the tags in assemblage $i from GF$filename.jpg" + exiftool -tagsFromFile "$file" $file $file_assemblage -overwrite_original + echo "updated the exift tags of $file_assemblage" + else + echo "batch_exif_photos: File $file does not exist." + fi fi done - echo "# fin des assemblages exif" + echo "# fin des assemblages exif de $1 à $2" } batch_exif_photos $1 $2 $3 + + bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/move_batch.sh $1 $2 + bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $1 $2