for binaries prefer grunt from node_modules/.bin and for all /usr/local/bin over /usr/bin

This commit is contained in:
ralf 2022-05-06 12:48:17 +02:00
parent 2c87752d75
commit ffd76eb617
1 changed files with 4 additions and 4 deletions

View File

@ -115,11 +115,11 @@ function usage($err=null)
$bins = array(
'php' => PHP_BINARY,
'git' => '/usr/bin/git',
'composer' => ['/usr/bin/composer', '/usr/bin/composer.phar'],
'git' => ['/usr/local/bin/git', '/usr/bin/git'],
'composer' => ['/usr/local/bin/composer', '/usr/bin/composer', '/usr/bin/composer.phar'],
// npm and grunt are no hard requirement and should be the last in the list!
'npm' => '/usr/bin/npm',
'grunt' => '/usr/bin/grunt',
'npm' => ['/usr/local/bin/npm', '/usr/bin/npm'],
'grunt' => [__DIR__.'/node_modules/.bin/grunt', '/usr/local/bin/grunt', '/usr/bin/grunt'],
);
// check if the necessary binaries are installed