diff options
author | Philipp Schmitt <philipp@schmitt.co> | 2014-02-21 13:45:57 +0100 |
---|---|---|
committer | Philipp Schmitt <philipp@schmitt.co> | 2014-02-21 13:45:57 +0100 |
commit | 43b1d81f77df987ad4118bafbdef14d9bd4f016d (patch) | |
tree | 2dab9050d695bbc75385072d7827a71b3bc28f39 /apps | |
parent | fc209a594445fbea503332e601df2f253c64de7b (diff) | |
download | nextcloud-server-43b1d81f77df987ad4118bafbdef14d9bd4f016d.tar.gz nextcloud-server-43b1d81f77df987ad4118bafbdef14d9bd4f016d.zip |
Use 'command -v' to detect whether and where software is installed (instead of 'which')
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/files_external/lib/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index b2109e5eacd..9bc06bbbccc 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -438,7 +438,7 @@ class OC_Mount_Config { */ public static function checksmbclient() { if(function_exists('shell_exec')) { - $output=shell_exec('which smbclient 2> /dev/null'); + $output=shell_exec('command -v smbclient 2> /dev/null'); return !empty($output); }else{ return false; |