1
0
Fork 0

Reference co-relating code sequence for tty test, refs #9454

pull/9461/head
Tom Klingenberg 2020-11-11 20:06:17 +01:00
parent 380dce9a6b
commit 258f6dc1a2
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))
) {