[GRASS-SVN] r35787 - grass/branches/develbranch_6/scripts/i.landsat.rgb

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 6 05:05:23 EST 2009


Author: hamish
Date: 2009-02-06 05:05:22 -0500 (Fri, 06 Feb 2009)
New Revision: 35787

Modified:
   grass/branches/develbranch_6/scripts/i.landsat.rgb/i.landsat.rgb
Log:
fix mapset check, remove bashism and unimportant warning

Modified: grass/branches/develbranch_6/scripts/i.landsat.rgb/i.landsat.rgb
===================================================================
--- grass/branches/develbranch_6/scripts/i.landsat.rgb/i.landsat.rgb	2009-02-06 07:21:51 UTC (rev 35786)
+++ grass/branches/develbranch_6/scripts/i.landsat.rgb/i.landsat.rgb	2009-02-06 10:05:22 UTC (rev 35787)
@@ -161,22 +161,16 @@
 BLUE_MAPSET=`g.findfile -n elem=cell file=$BLUE | grep mapset | cut -d'=' -f2`
 GREEN_MAPSET=`g.findfile -n elem=cell file=$GREEN | grep mapset | cut -d'=' -f2`
 
-if [ "$BLUE_MAPSET" == "$MAPSET" ] ; then
+if [ "$BLUE_MAPSET" = "$CURRENT_MAPSET" ] ; then
     r.support ${BLUE} history="${CMDLINE}"
-else
-    g.message -w message="Unable to write history for <$BLUE>. Raster map <$BLUE> not found in current mapset."
 fi
 
-if [ "$GREEN_MAPSET" == "$MAPSET" ] ; then
+if [ "$GREEN_MAPSET" = "$CURRENT_MAPSET" ] ; then
     r.support ${GREEN} history="${CMDLINE}"
-else
-    g.message -w message="Unable to write history for <$GREEN>. Raster map <$GREEN> not found in current mapset."
 fi
 
-if [ "$RED_MAPSET" == "$MAPSET" ] ; then
+if [ "$RED_MAPSET" = "$CURRENT_MAPSET" ] ; then
     r.support ${RED} history="${CMDLINE}"
-else
-    g.message -w message="Unable to write history for <$RED>. Raster map <$RED> not found in current mapset."
 fi
 
 exit 0



More information about the grass-commit mailing list