[GRASS-SVN] r51740 -
	grass/branches/releasebranch_6_4/scripts/v.db.update
    svn_grass at osgeo.org 
    svn_grass at osgeo.org
       
    Fri May 25 09:03:55 EDT 2012
    
    
  
Author: neteler
Date: 2012-05-25 06:03:54 -0700 (Fri, 25 May 2012)
New Revision: 51740
Modified:
   grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
Log:
fix the fix; catch user error
Modified: grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update	2012-05-25 12:51:08 UTC (rev 51739)
+++ grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update	2012-05-25 13:03:54 UTC (rev 51740)
@@ -116,6 +116,15 @@
       g.message -e 'Either value or qcolumn parameter have to be used'
       exit 1
    fi
+fi
+if [ ! -z "$GIS_OPT_QCOLUMN" ] ; then
+   if [ ! -z "$GIS_OPT_VALUE" ] ; then
+      g.message -e 'Either value or qcolumn parameter have to be used'
+      exit 1
+   fi
+fi
+
+if [ ! -z "$GIS_OPT_QCOLUMN" ] ; then
    # special case: we copy from another column
    value="$GIS_OPT_QCOLUMN"
 else
    
    
More information about the grass-commit
mailing list