[GRASS-SVN] r55620 - grass-addons/grass6/raster/r.mess
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 4 03:53:49 PDT 2013
Author: pvanbosgeo
Date: 2013-04-04 03:53:49 -0700 (Thu, 04 Apr 2013)
New Revision: 55620
Modified:
grass-addons/grass6/raster/r.mess/r.mess
Log:
Added a check for a R install
Modified: grass-addons/grass6/raster/r.mess/r.mess
===================================================================
--- grass-addons/grass6/raster/r.mess/r.mess 2013-04-04 08:06:12 UTC (rev 55619)
+++ grass-addons/grass6/raster/r.mess/r.mess 2013-04-04 10:53:49 UTC (rev 55620)
@@ -127,6 +127,12 @@
exit 1
fi
+## check for R
+if [ ! -x "$(which R)" ] ; then
+ g.message -e "<R> required, please install <R> first"
+ exit 1
+fi
+
## To parse the code into interactive menu
if [ "$1" != "@ARGS_PARSED@" ] ; then
exec g.parser "$0" "$@"
More information about the grass-commit
mailing list