From 833015fec087d1be0f936ae0e7ca68aab89fe7b1 Mon Sep 17 00:00:00 2001 From: Dmitri Popov Date: Wed, 31 Jan 2018 19:37:17 +0100 Subject: [PATCH] Fix GPX --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index a22efee..e3a7536 100755 --- a/backup.sh +++ b/backup.sh @@ -80,9 +80,9 @@ if [ ! -z $CARD_READER ]; then rsync -av --exclude "*.id" $CARD_MOUNT_POINT/ $BACKUP_PATH # Geocorrelate photos if a .gpx file exists - if [ -f "$STORAGE_MOUNT_POINT/*.gpx" ]; then + cd $STORAGE_MOUNT_POINT + if [ -f "*.gpx" ]; then GPX=$(ls *.gpx) - cd $STORAGE_MOUNT_POINT exiftool -overwrite_original -r -ext jpg -geotag "$GPX" -geosync=180 . fi