[GRASS-SVN] r36742 - grass/trunk/scripts/v.in.gpsbabel

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 16 00:47:44 EDT 2009


Author: hamish
Date: 2009-04-16 00:47:44 -0400 (Thu, 16 Apr 2009)
New Revision: 36742

Modified:
   grass/trunk/scripts/v.in.gpsbabel/v.in.gpsbabel
Log:
bugfix: gps device can be filename with spaces so needs to be quoted (merge from devbr6)

Modified: grass/trunk/scripts/v.in.gpsbabel/v.in.gpsbabel
===================================================================
--- grass/trunk/scripts/v.in.gpsbabel/v.in.gpsbabel	2009-04-16 04:39:07 UTC (rev 36741)
+++ grass/trunk/scripts/v.in.gpsbabel/v.in.gpsbabel	2009-04-16 04:47:44 UTC (rev 36742)
@@ -161,7 +161,7 @@
     fi
 fi
 if [ -n "$GIS_OPT_INPUT" ] ; then
-    GPSdevice="-f $GIS_OPT_INPUT"
+    GPSdevice="$GIS_OPT_INPUT"
     if [ $VERBOSE -eq 1 ] ; then
 	g.message message="file=$GIS_OPT_INPUT"
     fi
@@ -249,7 +249,7 @@
 	TYPE="-t"
     fi
 
-    gpsbabel $TYPE -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE \
+    gpsbabel $TYPE -i $GIS_OPT_FORMAT -f "$GPSdevice" $PROGVERBOSE \
 	-o xcsv,style="$STYLE" -F "$TMP".xcsv
     EXITCODE=$?
 
@@ -269,7 +269,7 @@
 	TYPE="-t"
 	EXITCODE=$?
     fi
-    gpsbabel $TYPE -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE \
+    gpsbabel $TYPE -i $GIS_OPT_FORMAT -f "$GPSdevice" $PROGVERBOSE \
 	-o gpx -F "$TMP".gpx
     EXITCODE=$?
 



More information about the grass-commit mailing list