[GRASS-SVN] r36740 -
grass/branches/develbranch_6/scripts/v.in.gpsbabel
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 16 00:35:28 EDT 2009
Author: hamish
Date: 2009-04-16 00:35:28 -0400 (Thu, 16 Apr 2009)
New Revision: 36740
Modified:
grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel
Log:
bugfix: gps device can be filename with spaces so needs to be quoted
Modified: grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel 2009-04-15 22:20:45 UTC (rev 36739)
+++ grass/branches/develbranch_6/scripts/v.in.gpsbabel/v.in.gpsbabel 2009-04-16 04:35:28 UTC (rev 36740)
@@ -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