summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-03 17:09:40 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-03 17:09:40 +0200
commitc6976d89a6fbfd59f966d676e23b39de62711b06 (patch)
tree4107bf730d5fa0d4277522aa326c7460cf86279c /apps
parent14a53819777f5cb829aa15f8d749c9ae71d39b4e (diff)
downloadnextcloud-server-c6976d89a6fbfd59f966d676e23b39de62711b06.tar.gz
nextcloud-server-c6976d89a6fbfd59f966d676e23b39de62711b06.zip
use command -v to detect if smbclient exists
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/smb.php2
1 files changed, 1 insertions, 1 deletions
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;
}