diff options
author | Philipp Schmitt <philipp@schmitt.co> | 2014-02-21 16:45:57 +0400 |
---|---|---|
committer | Philipp Schmitt <philipp@schmitt.co> | 2014-02-21 16:45:57 +0400 |
commit | 43b1d81f77df987ad4118bafbdef14d9bd4f016d (patch) | |
tree | 2dab9050d695bbc75385072d7827a71b3bc28f39 /lib/private/installer.php | |
parent | fc209a594445fbea503332e601df2f253c64de7b (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.php | 2 |
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', |