[GRASS-SVN] r52299 - grass/branches/develbranch_6/scripts/v.db.addcol
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 4 03:40:50 PDT 2012
Author: hamish
Date: 2012-07-04 03:40:50 -0700 (Wed, 04 Jul 2012)
New Revision: 52299
Modified:
grass/branches/develbranch_6/scripts/v.db.addcol/v.db.addcol
Log:
just eval what we need to (#1683), get rid of some useless curly brackets
Modified: grass/branches/develbranch_6/scripts/v.db.addcol/v.db.addcol
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.addcol/v.db.addcol 2012-07-04 09:14:20 UTC (rev 52298)
+++ grass/branches/develbranch_6/scripts/v.db.addcol/v.db.addcol 2012-07-04 10:40:50 UTC (rev 52299)
@@ -77,8 +77,7 @@
export LC_NUMERIC
### setup enviro vars ###
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
+eval `g.gisenv get=MAPSET`
# does map exist in CURRENT mapset?
eval `g.findfile element=vector file="$GIS_OPT_MAP" mapset="$MAPSET"`
@@ -108,7 +107,7 @@
exit 1
fi
- echo "ALTER TABLE $table ADD COLUMN $col" | db.execute database="${database}" driver="${driver}"
+ echo "ALTER TABLE $table ADD COLUMN $col" | db.execute database="$database" driver="$driver"
if [ $? -eq 1 ] ; then
g.message -e "Cannot continue (problem adding column)."
exit 1
@@ -118,7 +117,7 @@
# write cmd history:
-v.support "${GIS_OPT_MAP}" cmdhist="${CMDLINE}"
+v.support "$GIS_OPT_MAP" cmdhist="${CMDLINE}"
exit 0
More information about the grass-commit
mailing list