[GRASS-SVN] r44999 - grass/branches/develbranch_6/tools

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 12 18:11:48 EST 2011


Author: hamish
Date: 2011-01-12 15:11:48 -0800 (Wed, 12 Jan 2011)
New Revision: 44999

Modified:
   grass/branches/develbranch_6/tools/g51.extract_description.sh
Log:
fix bashism (see http://www.linuxjournal.com/content/daca-could-mean-less-bugs-debian    http://qa.debian.org/daca/checkbashisms/source/squeeze/grass_6.4.0~rc6+42329-3.html)

Modified: grass/branches/develbranch_6/tools/g51.extract_description.sh
===================================================================
--- grass/branches/develbranch_6/tools/g51.extract_description.sh	2011-01-12 23:09:45 UTC (rev 44998)
+++ grass/branches/develbranch_6/tools/g51.extract_description.sh	2011-01-12 23:11:48 UTC (rev 44999)
@@ -16,7 +16,7 @@
 FILE=$PATHGRASS50/html/html/$2.html
 
 CUTLINE="`grep -ni '<H2>DESCRIPTION' $FILE | cut -d':' -f1`"
-if [ "$CUTLINE" == "" ] ; then
+if [ -z "$CUTLINE" ] ; then
   echo "ERROR: no <H2>DESCRIPTION</H2> present in html file"
   exit
 fi



More information about the grass-commit mailing list