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

View File

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