[GRASS-SVN] r51726 -
grass/branches/develbranch_6/scripts/v.db.update
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 24 13:38:45 EDT 2012
Author: neteler
Date: 2012-05-24 10:38:44 -0700 (Thu, 24 May 2012)
New Revision: 51726
Modified:
grass/branches/develbranch_6/scripts/v.db.update/v.db.update
Log:
fix test to avoid accidential emptying of column
Modified: grass/branches/develbranch_6/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.update/v.db.update 2012-05-24 17:38:30 UTC (rev 51725)
+++ grass/branches/develbranch_6/scripts/v.db.update/v.db.update 2012-05-24 17:38:44 UTC (rev 51726)
@@ -111,8 +111,8 @@
# checking column types
coltype=`v.info -c map="$GIS_OPT_MAP" layer=$GIS_OPT_LAYER --quiet | grep -w "$GIS_OPT_COLUMN" | cut -d'|' -f1`
-if [ -n "$GIS_OPT_QCOLUMN" ] ; then
- if [ -n "$GIS_OPT_VALUE" ] ; then
+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
More information about the grass-commit
mailing list