[GRASS-SVN] r55207 - grass/branches/develbranch_6/scripts/i.oif

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 25 14:19:25 PST 2013


Author: hamish
Date: 2013-02-25 14:19:24 -0800 (Mon, 25 Feb 2013)
New Revision: 55207

Modified:
   grass/branches/develbranch_6/scripts/i.oif/i.oif
Log:
better handle spaces in GISDBASE (#1683), remove unused variables

Modified: grass/branches/develbranch_6/scripts/i.oif/i.oif
===================================================================
--- grass/branches/develbranch_6/scripts/i.oif/i.oif	2013-02-25 22:16:20 UTC (rev 55206)
+++ grass/branches/develbranch_6/scripts/i.oif/i.oif	2013-02-25 22:19:24 UTC (rev 55207)
@@ -79,20 +79,15 @@
 
 
 
-if  [ -z "$GISBASE" ]
-then
-	echo "You must be in GRASS GIS to run this program" >&2
-	exit 1
+if [ -z "$GISBASE" ] ; then
+    echo "You must be in GRASS GIS to run this program" >&2
+    exit 1
 fi
 
-if   [ "$1" != "@ARGS_PARSED@" ]
-then
-	exec g.parser "$0" "$@"
+if [ "$1" != "@ARGS_PARSED@" ] ; then
+    exec g.parser "$0" "$@"
 fi
 
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
-LOCATION="$GISDBASE/$LOCATION_NAME/$MAPSET"
 
 # Open tempfiles
 temp_stddev="`g.tempfile $$`"



More information about the grass-commit mailing list