[GRASS-SVN] r51627 - grass/branches/releasebranch_6_4/scripts/r.mask

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 15 15:50:47 EDT 2012


Author: hamish
Date: 2012-05-15 12:50:46 -0700 (Tue, 15 May 2012)
New Revision: 51627

Modified:
   grass/branches/releasebranch_6_4/scripts/r.mask/r.mask
Log:
GRASS_OVERWRITE=0 means protect maps, '! -z' is '-n' (merge from devbr6)

Modified: grass/branches/releasebranch_6_4/scripts/r.mask/r.mask
===================================================================
--- grass/branches/releasebranch_6_4/scripts/r.mask/r.mask	2012-05-15 19:48:38 UTC (rev 51626)
+++ grass/branches/releasebranch_6_4/scripts/r.mask/r.mask	2012-05-15 19:50:46 UTC (rev 51627)
@@ -57,7 +57,7 @@
   exec g.parser "$0" "$@"
 fi
 
-if [ ! -z "$GRASS_OVERWRITE" ] ; then
+if [ -n "$GRASS_OVERWRITE" ] && [ "$GRASS_OVERWRITE" -eq 1 ] ; then
    GIS_FLAG_O=1
 fi
 



More information about the grass-commit mailing list