[GRASS-SVN] r31718 - grass-addons/display/d.shortcuts

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 16 07:15:05 EDT 2008


Author: hamish
Date: 2008-06-16 07:15:05 -0400 (Mon, 16 Jun 2008)
New Revision: 31718

Modified:
   grass-addons/display/d.shortcuts/d.varea
Log:
fix typo (thanks Nikos); quote variables

Modified: grass-addons/display/d.shortcuts/d.varea
===================================================================
--- grass-addons/display/d.shortcuts/d.varea	2008-06-15 16:48:26 UTC (rev 31717)
+++ grass-addons/display/d.shortcuts/d.varea	2008-06-16 11:15:05 UTC (rev 31718)
@@ -8,20 +8,20 @@
 #	for details.
 #
 
-if [ -z $GISBASE ] ; then
+if [ -z "$GISBASE" ] ; then
         echo "You have to be in GRASS to use this."
         exit
 fi
 
 if [ -z "$1" ] ; then
-	echo "USAGE: d.vearea vectorfile [color]"
+	echo "USAGE: d.varea vectorfile [color]"
 	exit
 fi
 
-if [ -z $2 ] ; then
+if [ -z "$2" ] ; then
 	COLOR=225:225:225
 else
-	COLOR=$2
+	COLOR="$2"
 fi
 
 
@@ -37,4 +37,4 @@
     GRASS_VER=new
 fi
 
-d.vect $1 type=area fcolor=$COLOR
+d.vect map="$1" type=area fcolor="$COLOR"



More information about the grass-commit mailing list