[GRASS-SVN] r30125 - grass/trunk/scripts/r.in.aster
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 13 19:40:43 EST 2008
Author: hamish
Date: 2008-02-13 19:40:43 -0500 (Wed, 13 Feb 2008)
New Revision: 30125
Modified:
grass/trunk/scripts/r.in.aster/r.in.aster
Log:
quote variables
Modified: grass/trunk/scripts/r.in.aster/r.in.aster
===================================================================
--- grass/trunk/scripts/r.in.aster/r.in.aster 2008-02-14 00:36:33 UTC (rev 30124)
+++ grass/trunk/scripts/r.in.aster/r.in.aster 2008-02-14 00:40:43 UTC (rev 30125)
@@ -139,7 +139,7 @@
srcfile="HDF4_EOS:EOS_SWATH:"\"$GIS_OPT_INPUT\"":"$dataset
elif [ "$GIS_OPT_PROCTYPE" = "DEM" ]
then
- srcfile=$GIS_OPT_INPUT
+ srcfile="$GIS_OPT_INPUT"
fi
tempfile=`g.tempfile $$`.tif
@@ -161,14 +161,14 @@
#import geotiff to GRASS
g.message "Importing into GRASS ..."
-r.in.gdal input=$tempfile output=$GIS_OPT_OUTPUT
+r.in.gdal input="$tempfile" output="$GIS_OPT_OUTPUT"
#cleanup
g.message "Cleaning up ..."
-rm -f $tempfile
+rm -f "$tempfile"
# write cmd history:
-r.support $GIS_OPT_OUTPUT history="${CMDLINE}"
+r.support "$GIS_OPT_OUTPUT" history="${CMDLINE}"
g.message "Done."
More information about the grass-commit
mailing list