[GRASS-SVN] r40923 - grass-addons/raster/r.out.gmt
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 10 20:53:54 EST 2010
Author: hamish
Date: 2010-02-10 20:53:53 -0500 (Wed, 10 Feb 2010)
New Revision: 40923
Modified:
grass-addons/raster/r.out.gmt/r.out.gmt
Log:
don't include @mapset in output name, quiet rm
Modified: grass-addons/raster/r.out.gmt/r.out.gmt
===================================================================
--- grass-addons/raster/r.out.gmt/r.out.gmt 2010-02-11 01:48:26 UTC (rev 40922)
+++ grass-addons/raster/r.out.gmt/r.out.gmt 2010-02-11 01:53:53 UTC (rev 40923)
@@ -83,7 +83,7 @@
MAP_NAME="$GIS_OPT_input"
if [ -z "$GIS_OPT_output" ] ; then
- OUT_BASE="$GIS_OPT_input"
+ OUT_BASE=`echo "$GIS_OPT_input" | cut -f1 -d'@'`
else
OUT_BASE="$GIS_OPT_output"
fi
@@ -105,7 +105,7 @@
cleanup()
{
if [ "$MAP_TYPE" = "DCELL" ] ; then
- g.remove tmp_gmt_$$ > /dev/null
+ g.remove "tmp_gmt_$$" --quiet
fi
}
More information about the grass-commit
mailing list