Skip to content
Snippets Groups Projects
Commit c6976d89 authored by Thomas Müller's avatar Thomas Müller
Browse files

use command -v to detect if smbclient exists

parent 14a53819
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ class SMB extends \OC\Files\Storage\StreamWrapper{ ...@@ -140,7 +140,7 @@ class SMB extends \OC\Files\Storage\StreamWrapper{
*/ */
public static function checkDependencies() { public static function checkDependencies() {
if (function_exists('shell_exec')) { if (function_exists('shell_exec')) {
$output = shell_exec('which smbclient'); $output=shell_exec('command -v smbclient 2> /dev/null');
if (!empty($output)) { if (!empty($output)) {
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment