summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/config.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-03-05 19:25:09 +0100
committerLukas Reschke <lukas@statuscode.ch>2014-03-05 19:25:09 +0100
commite3156fa5adf67e5145b043a109847b6904394b25 (patch)
treed468b374882075faa9c151cc48b3def7cd6841b1 /apps/files_external/lib/config.php
parent9111af04780b547918a8661579d330d8d41c3e98 (diff)
parent43b1d81f77df987ad4118bafbdef14d9bd4f016d (diff)
downloadnextcloud-server-e3156fa5adf67e5145b043a109847b6904394b25.tar.gz
nextcloud-server-e3156fa5adf67e5145b043a109847b6904394b25.zip
Merge pull request #7354 from pschmitt/master
Use 'command -v' to detect whether and where software is installed (instead of 'which')
Diffstat (limited to 'apps/files_external/lib/config.php')
-rwxr-xr-xapps/files_external/lib/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 1069e2b42eb..2767076eefa 100755
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -476,7 +476,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;