[GRASS-SVN] r40271 -
grass/branches/releasebranch_6_4/scripts/v.db.addtable
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 5 19:26:29 EST 2010
Author: hamish
Date: 2010-01-05 19:26:29 -0500 (Tue, 05 Jan 2010)
New Revision: 40271
Modified:
grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable
Log:
fix variable typo (#809 ?; merge from devbr6)
Modified: grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable 2010-01-06 00:24:57 UTC (rev 40270)
+++ grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable 2010-01-06 00:26:29 UTC (rev 40271)
@@ -97,7 +97,7 @@
if [ -z "$GIS_OPT_TABLE" ] ; then
- if [ $GIS_OPT_LAYER -eq 1 ] ; then
+ if [ "$GIS_OPT_LAYER" -eq 1 ] ; then
g.message "Using vector map name as table name: $MAP_NAME"
table="$MAP_NAME"
else
@@ -126,7 +126,7 @@
else
# there is a definition for layer 1, so we check for the user defined layer
database=`v.db.connect map="$GIS_OPT_MAP" -g fs=";" | grep -w "$QUERYLAYER" | awk -F ";" '{print $4}'`
- if [ -z "database" ] ; then
+ if [ -z "$database" ] ; then
#nothing on user defined layer, so we use the default mapset settings in this case:
database=`db.connect -p | grep '^database' | cut -d':' -f2`
driver=`db.connect -p | grep '^driver' | cut -d':' -f2`
More information about the grass-commit
mailing list