This commit is contained in:
Dmitri Popov
2018-01-31 19:37:17 +01:00
parent f4babc5578
commit 833015fec0

View File

@@ -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
GPX=$(ls *.gpx)
cd $STORAGE_MOUNT_POINT
if [ -f "*.gpx" ]; then
GPX=$(ls *.gpx)
exiftool -overwrite_original -r -ext jpg -geotag "$GPX" -geosync=180 .
fi