[GRASS-SVN] r36741 - grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 16 00:39:07 EDT 2009


Author: hamish
Date: 2009-04-16 00:39:07 -0400 (Thu, 16 Apr 2009)
New Revision: 36741

Modified:
   grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel/v.in.gpsbabel
Log:
bugfix: gps device can be filename with spaces so needs to be quoted

Modified: grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel/v.in.gpsbabel
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel/v.in.gpsbabel	2009-04-16 04:35:28 UTC (rev 36740)
+++ grass/branches/releasebranch_6_4/scripts/v.in.gpsbabel/v.in.gpsbabel	2009-04-16 04:39:07 UTC (rev 36741)
@@ -162,7 +162,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
@@ -250,7 +250,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=$?
 
@@ -270,7 +270,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