From 43b1d81f77df987ad4118bafbdef14d9bd4f016d Mon Sep 17 00:00:00 2001 From: Philipp Schmitt Date: Fri, 21 Feb 2014 13:45:57 +0100 Subject: Use 'command -v' to detect whether and where software is installed (instead of 'which') --- apps/files_external/lib/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_external') 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; -- cgit v1.2.3