Fix .gpx detection
This commit is contained in:
@@ -81,9 +81,9 @@ if [ ! -z $CARD_READER ]; then
|
|||||||
|
|
||||||
# Geocorrelate photos if a .gpx file exists
|
# Geocorrelate photos if a .gpx file exists
|
||||||
cd $STORAGE_MOUNT_POINT
|
cd $STORAGE_MOUNT_POINT
|
||||||
if [ -f "*.gpx" ]; then
|
if [ -f *.gpx ]; then
|
||||||
GPX=$(ls *.gpx)
|
GPX="$(ls *.gpx)"
|
||||||
exiftool -overwrite_original -r -ext jpg -geotag "$GPX" -geosync=180 .
|
exiftool -overwrite_original -r -ext jpg -geotag "$GPX" -geosync=120 .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Turn off the ACT LED to indicate that the backup is completed
|
# Turn off the ACT LED to indicate that the backup is completed
|
||||||
|
|||||||
Reference in New Issue
Block a user