From c6976d89a6fbfd59f966d676e23b39de62711b06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Thu, 3 Apr 2014 17:09:40 +0200 Subject: [PATCH] use command -v to detect if smbclient exists --- apps/files_external/lib/smb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5