diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-25 11:06:26 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-25 18:10:03 +0100 |
commit | 0274dcba575272585a6f0b16bc777301f9458537 (patch) | |
tree | 900b8030b146261e3bfd69dddba8400f6f530574 /lib/private/installer.php | |
parent | 6fb2477fb75d4c982a1568e2392d17fd7cc2fd4b (diff) | |
download | nextcloud-server-0274dcba575272585a6f0b16bc777301f9458537.tar.gz nextcloud-server-0274dcba575272585a6f0b16bc777301f9458537.zip |
Replace some more "command -v" calls with the Helper method
Diffstat (limited to 'lib/private/installer.php')
-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); |