mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Update composer script
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user