[GRASS-SVN] r31129 - grass-addons/raster/r.colors.tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 27 00:13:04 EDT 2008
Author: hamish
Date: 2008-04-27 00:13:04 -0400 (Sun, 27 Apr 2008)
New Revision: 31129
Modified:
grass-addons/raster/r.colors.tools/r.cpt2grass
Log:
be less strict looking for color model
Modified: grass-addons/raster/r.colors.tools/r.cpt2grass
===================================================================
--- grass-addons/raster/r.colors.tools/r.cpt2grass 2008-04-27 04:07:00 UTC (rev 31128)
+++ grass-addons/raster/r.colors.tools/r.cpt2grass 2008-04-27 04:13:04 UTC (rev 31129)
@@ -67,7 +67,7 @@
exit 1
fi
-if [ `grep '^# COLOR_MODEL' "$GIS_OPT_INPUT" | cut -f2 -d= | grep -c 'HSV\|CMYK'` -gt 0 ] ; then
+if [ `grep 'COLOR_MODEL' "$GIS_OPT_INPUT" | cut -f2 -d= | grep -c 'HSV\|CMYK'` -gt 0 ] ; then
echo "ERROR: Only the RGB color model is supported" 1>&2
exit 1
fi
More information about the grass-commit
mailing list