mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use composer wrapper in pre-commit (#8192)
This commit is contained in:
committed by
Neil Lathwood
parent
609676a9f8
commit
dc2883f59d
@@ -357,8 +357,7 @@ function check_exec($exec)
|
||||
return find_exec($exec);
|
||||
} catch (Exception $e) {
|
||||
try {
|
||||
$composer_bin = find_exec(array('composer', 'composer.phar'));
|
||||
shell_exec("$composer_bin update");
|
||||
shell_exec("scripts/composer_wrapper.php install");
|
||||
return find_exec($exec);
|
||||
} catch (Exception $ce) {
|
||||
echo "\nCould not find $exec. Please install composer.\nYou can find more info at http://docs.librenms.org/Developing/Validating-Code/\n";
|
||||
|
||||
Reference in New Issue
Block a user