From: Thomas Müller Date: Thu, 3 Apr 2014 15:09:40 +0000 (+0200) Subject: use command -v to detect if smbclient exists X-Git-Tag: v7.0.0alpha2~476^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6976d89a6fbfd59f966d676e23b39de62711b06;p=nextcloud-server.git use command -v to detect if smbclient exists --- diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index 3ef13b633a9..b1d355323d9 100644 --- a/apps/files_external/lib/smb.php +++ b/apps/files_external/lib/smb.php @@ -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; }