[GRASS-SVN] r40270 - grass/branches/develbranch_6/scripts/v.db.addtable

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 5 19:25:00 EST 2010


Author: hamish
Date: 2010-01-05 19:24:57 -0500 (Tue, 05 Jan 2010)
New Revision: 40270

Modified:
   grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable
Log:
fix variable typo (#809 ?)

Modified: grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable	2010-01-06 00:04:34 UTC (rev 40269)
+++ grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable	2010-01-06 00:24:57 UTC (rev 40270)
@@ -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