|
|
@@ -44,9 +44,7 @@ then
|
|
|
echo "=> Adding GPS Position"
|
|
|
|
|
|
# On cherche à voir si on a la position GPS ou non dans le exif
|
|
|
- exiftool ~/_Pictures/$IMG | grep -e "GPS Position" -e "GPS Altitude"
|
|
|
- echo $?
|
|
|
- if [ $? -eq 0 ]
|
|
|
+ if [ exiftool ~/_Pictures/$IMG | grep -e "GPS Position" -e "GPS Altitude" -eq 0 ]
|
|
|
then
|
|
|
GPS_POS=$(exiftool ~/_Pictures/$IMG | grep "GPS Position" | cut -d":" -f2)
|
|
|
ALTITUDE=$(exiftool ~/_Pictures/$IMG | grep "GPS Altitude" | cut -d":" -f2)
|