[GRASS-SVN] r41373 - grass/branches/develbranch_6/scripts/v.in.lines

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 9 02:10:33 EST 2010


Author: hamish
Date: 2010-03-09 02:10:30 -0500 (Tue, 09 Mar 2010)
New Revision: 41373

Modified:
   grass/branches/develbranch_6/scripts/v.in.lines/v.in.lines
Log:
OSX compatibility (see trac #991)

Modified: grass/branches/develbranch_6/scripts/v.in.lines/v.in.lines
===================================================================
--- grass/branches/develbranch_6/scripts/v.in.lines/v.in.lines	2010-03-09 07:02:56 UTC (rev 41372)
+++ grass/branches/develbranch_6/scripts/v.in.lines/v.in.lines	2010-03-09 07:10:30 UTC (rev 41373)
@@ -95,7 +95,7 @@
    fi
 
    # make sure we have at least one line of data
-   if [ "`wc -l "$TEMPFILE" | cut -f1 -d' '`" -eq 0 ] ; then
+   if [ `wc -l < "$TEMPFILE"` -eq 0 ] ; then
       g.message -e "Problem reading data from stdin"
       exit 1
    fi



More information about the grass-commit mailing list