summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-25 11:06:26 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-25 18:10:03 +0100
commit0274dcba575272585a6f0b16bc777301f9458537 (patch)
tree900b8030b146261e3bfd69dddba8400f6f530574 /apps
parent6fb2477fb75d4c982a1568e2392d17fd7cc2fd4b (diff)
downloadnextcloud-server-0274dcba575272585a6f0b16bc777301f9458537.tar.gz
nextcloud-server-0274dcba575272585a6f0b16bc777301f9458537.zip
Replace some more "command -v" calls with the Helper method
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/smb.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index 6e53c4a9931..3f0b0f45bfb 100644
--- a/apps/files_external/lib/smb.php
+++ b/apps/files_external/lib/smb.php
@@ -139,13 +139,8 @@ class SMB extends \OC\Files\Storage\StreamWrapper{
* check if smbclient is installed
*/
public static function checkDependencies() {
- if (function_exists('shell_exec')) {
- $output=shell_exec('command -v smbclient 2> /dev/null');
- if (!empty($output)) {
- return true;
- }
- }
- return array('smbclient');
+ $smbClientExists = (bool) \OC_Helper::findBinaryPath('smbclient');
+ return $smbClientExists ? true : array('smbclient');
}
}