Skip to content

Commit

Permalink
Add an option to don't show banner after a task (deployphp#3578)
Browse files Browse the repository at this point in the history
  • Loading branch information
lptn authored Apr 21, 2023
1 parent 68deaa7 commit e048158
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/MainCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ private function checkUpdates()

private function showBanner()
{
if (getenv('DO_NOT_SHOW_BANNER') === 'true') {
return;
}

try {
$withColors = '';
if (function_exists('posix_isatty') && posix_isatty(STDOUT)) {
Expand Down

0 comments on commit e048158

Please sign in to comment.