[GRASS-SVN] r50920 - grass/branches/develbranch_6/scripts/r.mask

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 22 14:34:14 EST 2012


Author: hamish
Date: 2012-02-22 11:34:14 -0800 (Wed, 22 Feb 2012)
New Revision: 50920

Modified:
   grass/branches/develbranch_6/scripts/r.mask/r.mask
Log:
uppercase MASK when referring to the map name instead of the concept, quote a variable

Modified: grass/branches/develbranch_6/scripts/r.mask/r.mask
===================================================================
--- grass/branches/develbranch_6/scripts/r.mask/r.mask	2012-02-22 15:08:18 UTC (rev 50919)
+++ grass/branches/develbranch_6/scripts/r.mask/r.mask	2012-02-22 19:34:14 UTC (rev 50920)
@@ -22,20 +22,20 @@
 #% key: input
 #% type: string
 #% gisprompt: old,cell,raster
-#% description: Raster map to use as mask
+#% description: Raster map to use as MASK
 #% required: no
 #% guisection: Create
 #%end
 #%option
 #% key: maskcats
 #% type: string
-#% description: Category values to use for mask (format: 1 2 3 thru 7 *)
+#% description: Category values to use for MASK (format: 1 2 3 thru 7 *)
 #% answer: *
 #% guisection: Create
 #%end
 #%flag
 #% key: i
-#% description: Create inverse mask from specified 'maskcats' list
+#% description: Create inverse MASK from specified 'maskcats' list
 #% guisection: Create
 #%end
 #%flag
@@ -44,7 +44,7 @@
 #%end
 #%flag
 #% key: r
-#% description: Remove existing mask (overrides other options)
+#% description: Remove existing MASK (overrides other options)
 #% guisection: Remove
 #%end
 
@@ -108,7 +108,7 @@
  		g.message $BEQUIET -w "No existing MASK to remove"
 	fi
 else
-	if [ ! $GIS_OPT_INPUT ]; then
+	if [ -z "$GIS_OPT_INPUT" ]; then
 		g.message $BEQUIET -w "No raster map for MASK provided"
 		exit 1;
 	fi



More information about the grass-commit mailing list