1
0
Fork 0

Merge pull request #9461 from ktomk/patch-9454-isatty

Reference co-relating code sequence for tty test, refs #9454
pull/9465/head
Jordi Boggiano 2020-11-11 21:14:29 +01:00 committed by GitHub
commit 53412a3299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ class Application extends BaseApplication
if (
getenv('COMPOSER_NO_INTERACTION')
/* @see \Composer\Util\ProcessExecutor::executeTty - tty test */
|| (function_exists('stream_isatty') && !stream_isatty(STDOUT))
|| (function_exists('posix_isatty') && !posix_isatty(STDOUT))
) {

View File

@ -78,6 +78,7 @@ class ProcessExecutor
public function executeTty($command, $cwd = null)
{
if (
/* @see \Composer\Console\Application::doRun - tty test */
(function_exists('stream_isatty') && !stream_isatty(STDOUT))
|| (function_exists('posix_isatty') && !posix_isatty(STDOUT))
) {