[GRASS-SVN] r57786 - grass/branches/releasebranch_6_4/scripts/v.db.dropcol
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 21 17:54:31 PDT 2013
Author: hamish
Date: 2013-09-21 17:54:30 -0700 (Sat, 21 Sep 2013)
New Revision: 57786
Modified:
grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol
Log:
better handle spaces in GISDBASE (#1683, merge from devbr6)
Modified: grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol 2013-09-22 00:51:04 UTC (rev 57785)
+++ grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol 2013-09-22 00:54:30 UTC (rev 57786)
@@ -49,7 +49,7 @@
if [ -z "$GISBASE" ] ; then
echo "You must be in GRASS GIS to run this program." 1>&2
- exit 1
+ exit 1
fi
# save command line
@@ -87,8 +87,7 @@
trap "exitprocedure" 2 3 15
### setup enviro vars ###
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
+MAPSET=`g.gisenv get=MAPSET`
# does map exist in CURRENT mapset?
eval `g.findfile element=vector file="$GIS_OPT_MAP" mapset="$MAPSET"`
More information about the grass-commit
mailing list