[GRASS-SVN] r40229 - grass-addons/vector/v.surf.icw

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 4 23:26:59 EST 2010


Author: hamish
Date: 2010-01-04 23:26:58 -0500 (Mon, 04 Jan 2010)
New Revision: 40229

Modified:
   grass-addons/vector/v.surf.icw/v.surf.icw
Log:
test to see if G_V exists before integer compare

Modified: grass-addons/vector/v.surf.icw/v.surf.icw
===================================================================
--- grass-addons/vector/v.surf.icw/v.surf.icw	2010-01-05 03:46:31 UTC (rev 40228)
+++ grass-addons/vector/v.surf.icw/v.surf.icw	2010-01-05 04:26:58 UTC (rev 40229)
@@ -145,10 +145,12 @@
 
 POINTS_FILE="$GIS_OPT_INPUT"
 
-unset VERBOSE
-# test to see if G_V exists before integer compare?
-if [ $GIS_FLAG_V -eq 1 ] || [ "$GRASS_VERBOSE" -gt 1 ] ; then
+
+if [ $GIS_FLAG_V -eq 1 ] || \
+ ( [ -n "$GRASS_VERBOSE" ] && [ "$GRASS_VERBOSE" -gt 1 ] ) ; then
    VERBOSE="-v"
+else
+   VERBOSE=""
 fi
 
 ### Check that we have the column and it is the correct type



More information about the grass-commit mailing list