Browse Source

fix bug for show GPS info in PD120

Pierre Bourdin 1 month ago
parent
commit
4ff5ce74d7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      convert_process/2_convert

+ 1 - 3
convert_process/2_convert

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