Update composer script

This commit is contained in:
DariusIII
2020-03-22 23:28:51 +01:00
parent e12847c37b
commit 805d118a65
2 changed files with 1 additions and 16 deletions
-14
View File
@@ -24,20 +24,6 @@ use Illuminate\Foundation\Application;
class ComposerScripts
{
public static function postInstallCmd()
{
$last = $output = $return = null;
if ((int) getenv('COMPOSER_DEV_MODE') === 1) {
echo 'Updating git hooks... ';
$last = exec('build/git-hooks/addHooks.sh', $output, $return);
if ($return > 0) {
echo PHP_EOL;
exit($last);
}
echo 'done'.PHP_EOL;
}
}
/**
* Handle the post-install Composer event.
*
+1 -2
View File
@@ -177,8 +177,7 @@
"@php artisan key:generate --ansi"
],
"post-install-cmd": [
"Blacklight\\build\\ComposerScripts::postInstall",
"Blacklight\\build\\ComposerScripts::postInstallCmd"
"Blacklight\\build\\ComposerScripts::postInstall"
],
"post-update-cmd": [
"Blacklight\\build\\ComposerScripts::postUpdate",