[pLog-svn] r5548 - plugins/branches/lifetype-1.2

oscar at devel.lifetype.net oscar at devel.lifetype.net
Fri Jun 15 16:29:01 EDT 2007


Author: oscar
Date: 2007-06-15 16:29:01 -0400 (Fri, 15 Jun 2007)
New Revision: 5548

Modified:
   plugins/branches/lifetype-1.2/genpluginfeeds.php
Log:
Improved detection of the 'svn' command line client.

Modified: plugins/branches/lifetype-1.2/genpluginfeeds.php
===================================================================
--- plugins/branches/lifetype-1.2/genpluginfeeds.php	2007-06-15 20:19:06 UTC (rev 5547)
+++ plugins/branches/lifetype-1.2/genpluginfeeds.php	2007-06-15 20:29:01 UTC (rev 5548)
@@ -45,7 +45,17 @@
 	 */
 	function _findSvnClient()
 	{
-		return( "/usr/local/bin/svn" );
+		$folders = Array(
+			"/usr/bin/svn",
+			"/usr/local/bin/svn"
+		);
+		
+		foreach( $folders as $path ) {
+			if( File::isReadable( $path )) 
+				return( $path );
+		}
+		
+		return( "svn" );
 	}
 	
 	function checkOut( $path, $dest = "" )



More information about the pLog-svn mailing list