Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Schmitt <philipp@schmitt.co>2014-02-21 16:45:57 +0400
committerPhilipp Schmitt <philipp@schmitt.co>2014-02-21 16:45:57 +0400
commit43b1d81f77df987ad4118bafbdef14d9bd4f016d (patch)
tree2dab9050d695bbc75385072d7827a71b3bc28f39 /lib/private/installer.php
parentfc209a594445fbea503332e601df2f253c64de7b (diff)
Use 'command -v' to detect whether and where software is installed (instead of 'which')
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r--lib/private/installer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index 11633a4d4a1..64e8e3a5e7a 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -464,7 +464,7 @@ class OC_Installer{
// is the code checker enabled?
if(OC_Config::getValue('appcodechecker', true)) {
// check if grep is installed
- $grep = exec('which grep');
+ $grep = exec('command -v grep');
if($grep=='') {
OC_Log::write('core',
'grep not installed. So checking the code of the app "'.$appname.'" was not possible',