Merge pull request #9461 from ktomk/patch-9454-isatty
Reference co-relating code sequence for tty test, refs #9454pull/9465/head
commit
53412a3299
|
@ -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))
|
||||
) {
|
||||
|
|
|
@ -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))
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue