[GRASS-SVN] r60139 - grass-addons/grass6/raster/r.connectivity.network

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 6 22:32:42 PDT 2014


Author: sbl
Date: 2014-05-06 22:32:42 -0700 (Tue, 06 May 2014)
New Revision: 60139

Modified:
   grass-addons/grass6/raster/r.connectivity.network/r.connectivity.network
Log:
Fix checks for ghostscript on Unix/Mac (r.connectivity.network), used wrong operator earlier

Modified: grass-addons/grass6/raster/r.connectivity.network/r.connectivity.network
===================================================================
--- grass-addons/grass6/raster/r.connectivity.network/r.connectivity.network	2014-05-07 02:53:27 UTC (rev 60138)
+++ grass-addons/grass6/raster/r.connectivity.network/r.connectivity.network	2014-05-07 05:32:42 UTC (rev 60139)
@@ -299,7 +299,7 @@
 	#		exit 1
 	#	fi
 	else
-		if [  ! -x "`which gs`" -o ! -x "`which ghostscript`" ] ; then
+		if [  ! -x "`which gs`" -a ! -x "`which ghostscript`" ] ; then
 			g.message -e "ghostscript is required for postscript output, please install ghostscript first" 
 			exit 1
 		fi
@@ -315,7 +315,7 @@
 	#		exit 1
 	#	fi
 	else
-		if [  ! -x "`which gs`" -o ! -x "`which ghostscript`" ] ; then
+		if [  ! -x "`which gs`" -a ! -x "`which ghostscript`" ] ; then
 			g.message -e "ghostscript is required for postscript output, please install ghostscript first" 
 			exit 1
 		fi



More information about the grass-commit mailing list