[GRASS-SVN] r42096 - grass-addons/vector/v.in.osm2

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 3 18:51:10 EDT 2010


Author: hamish
Date: 2010-05-03 18:51:09 -0400 (Mon, 03 May 2010)
New Revision: 42096

Modified:
   grass-addons/vector/v.in.osm2/v.in.osm
Log:
thinko

Modified: grass-addons/vector/v.in.osm2/v.in.osm
===================================================================
--- grass-addons/vector/v.in.osm2/v.in.osm	2010-05-03 22:44:47 UTC (rev 42095)
+++ grass-addons/vector/v.in.osm2/v.in.osm	2010-05-03 22:51:09 UTC (rev 42096)
@@ -94,7 +94,7 @@
    wget -O "$TEMPFILE" "$BASEURL/$GIS_OPT_QUERY[bbox=$BBOX]"
 fi
 
-if [ $? -ne 1 ] ; then
+if [ $? -ne 0 ] ; then
    g.message -e "Download failed."
    \rm "$TEMPFILE"
    exit 1
@@ -108,7 +108,7 @@
 
 v.in.gpsbabel $FEAT input="$TEMPFILE" output="$GIS_OPT_OUTPUT" format=osm
 
-if [ $? -ne 1 ] ; then
+if [ $? -ne 0 ] ; then
    g.message -e "Import failed."
    \rm "$TEMPFILE"
    exit 1



More information about the grass-commit mailing list