Browse Source

observe verbosity settings (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31275 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 17 years ago
parent
commit
ed344a4d7f
1 changed files with 5 additions and 2 deletions
  1. 5 2
      scripts/v.db.addtable/v.db.addtable

+ 5 - 2
scripts/v.db.addtable/v.db.addtable

@@ -184,10 +184,13 @@ v.db.connect map="$GIS_OPT_MAP" database="$database" driver="$driver" \
 # (creates new row for each vector line):
 # (creates new row for each vector line):
 v.to.db "$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" option=cat col=cat
 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:
 # write cmd history:
 v.support map="$GIS_OPT_MAP" cmdhist="${CMDLINE}"
 v.support map="$GIS_OPT_MAP" cmdhist="${CMDLINE}"
 
 
 exit 0
 exit 0
+