Fix .gpx detection

This commit is contained in:
Dmitri Popov
2018-01-31 20:39:03 +01:00
parent 833015fec0
commit 357cbd3393

View File

@@ -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