use command -v to detect if smbclient exists

This commit is contained in:
Thomas Müller 2014-04-03 17:09:40 +02:00
parent 14a5381977
commit c6976d89a6
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class SMB extends \OC\Files\Storage\StreamWrapper{
*/
public static function checkDependencies() {
if (function_exists('shell_exec')) {
$output = shell_exec('which smbclient');
$output=shell_exec('command -v smbclient 2> /dev/null');
if (!empty($output)) {
return true;
}