[GRASS-SVN] r40265 - grass/branches/develbranch_6/scripts/v.db.droptable

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 5 18:20:47 EST 2010


Author: hamish
Date: 2010-01-05 18:20:45 -0500 (Tue, 05 Jan 2010)
New Revision: 40265

Modified:
   grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable
Log:
quote variables

Modified: grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable	2010-01-05 22:40:27 UTC (rev 40264)
+++ grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable	2010-01-05 23:20:45 UTC (rev 40265)
@@ -79,7 +79,7 @@
        exit 1
     fi
     table=`v.db.connect map="$GIS_OPT_MAP" -g fs=";" | grep -w "$GIS_OPT_LAYER" | awk -F ";" '{print $2}'`
-    if [ -z $table ] ; then
+    if [ -z "$table" ] ; then
        g.message -e "No table assigned to layer <$GIS_OPT_LAYER>"
        exit 1
     fi
@@ -87,7 +87,7 @@
 else
     # Removing user specified table
     existingtable=`v.db.connect map="$GIS_OPT_MAP" -g fs=";" | grep -w "$GIS_OPT_LAYER" | awk -F ";" '{print $2}'`
-    table=$GIS_OPT_TABLE
+    table="$GIS_OPT_TABLE"
     if [ "$existingtable" != "$table" ] ; then
        g.message -e "User selected table <$table> but the table <$existingtable> is linked to layer <$GIS_OPT_LAYER>" 
        exit 1



More information about the grass-commit mailing list