Use composer wrapper in pre-commit (#8192)

This commit is contained in:
Tony Murray
2018-02-03 16:40:15 -06:00
committed by Neil Lathwood
parent 609676a9f8
commit dc2883f59d

View File

@@ -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";