From 357cbd3393c4f8131ef4ba0f02a62885a2b51e1e Mon Sep 17 00:00:00 2001 From: Dmitri Popov Date: Wed, 31 Jan 2018 20:39:03 +0100 Subject: [PATCH] Fix .gpx detection --- backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index e3a7536..eb8d55e 100755 --- a/backup.sh +++ b/backup.sh @@ -81,9 +81,9 @@ if [ ! -z $CARD_READER ]; then # Geocorrelate photos if a .gpx file exists cd $STORAGE_MOUNT_POINT - if [ -f "*.gpx" ]; then - GPX=$(ls *.gpx) - exiftool -overwrite_original -r -ext jpg -geotag "$GPX" -geosync=180 . + if [ -f *.gpx ]; then + GPX="$(ls *.gpx)" + exiftool -overwrite_original -r -ext jpg -geotag "$GPX" -geosync=120 . fi # Turn off the ACT LED to indicate that the backup is completed