[GRASS-SVN] r31275 - grass/trunk/scripts/v.db.addtable

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 7 03:32:54 EDT 2008


Author: hamish
Date: 2008-05-07 03:32:54 -0400 (Wed, 07 May 2008)
New Revision: 31275

Modified:
   grass/trunk/scripts/v.db.addtable/v.db.addtable
Log:
observe verbosity settings (merge from devbr6)

Modified: grass/trunk/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/trunk/scripts/v.db.addtable/v.db.addtable	2008-05-07 07:30:38 UTC (rev 31274)
+++ grass/trunk/scripts/v.db.addtable/v.db.addtable	2008-05-07 07:32:54 UTC (rev 31275)
@@ -184,10 +184,13 @@
 # (creates new row for each vector line):
 v.to.db "$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" option=cat col=cat
 
-g.message "Current attribute table links:"
-v.db.connect -p "$GIS_OPT_MAP"
+if [ -z "$GRASS_VERBOSE" ] || [ "$GRASS_VERBOSE" -gt 0 ] ; then
+   g.message "Current attribute table links:"
+   v.db.connect -p "$GIS_OPT_MAP"
+fi
 
 # write cmd history:
 v.support map="$GIS_OPT_MAP" cmdhist="${CMDLINE}"
 
 exit 0
+



More information about the grass-commit mailing list