diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-11-26 10:29:41 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-26 10:29:41 +0100 |
commit | c749570a06fa4d24927fbd7aad13b36a8f1ff439 (patch) | |
tree | d3ee72338603cfb4e3c585c07417c85678e70d26 /lib | |
parent | 1da46b1a5821683b790349f1d11b7a49714b0994 (diff) | |
parent | 0274dcba575272585a6f0b16bc777301f9458537 (diff) | |
download | nextcloud-server-c749570a06fa4d24927fbd7aad13b36a8f1ff439.tar.gz nextcloud-server-c749570a06fa4d24927fbd7aad13b36a8f1ff439.zip |
Merge pull request #12411 from owncloud/unknown-command-windows
Replace some more "command -v" calls with the Helper method
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/installer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php index cd1d8ce392f..f43969691c7 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -558,8 +558,8 @@ class OC_Installer{ // is the code checker enabled? if(OC_Config::getValue('appcodechecker', true)) { // check if grep is installed - $grep = exec('command -v grep'); - if($grep=='') { + $grep = \OC_Helper::findBinaryPath('grep'); + if (!$grep) { OC_Log::write('core', 'grep not installed. So checking the code of the app "'.$appname.'" was not possible', OC_Log::ERROR); |