[GRASS-SVN] r51725 -
grass/branches/releasebranch_6_4/scripts/v.db.update
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 24 13:38:31 EDT 2012
Author: neteler
Date: 2012-05-24 10:38:30 -0700 (Thu, 24 May 2012)
New Revision: 51725
Modified:
grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
Log:
fix test to avoid accidential emptying of column
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-24 17:32:14 UTC (rev 51724)
+++ grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update 2012-05-24 17:38:30 UTC (rev 51725)
@@ -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