Skip to content

Commit de10abc

Browse files
committed
Ignore TTY warning
1 parent 0c5c514 commit de10abc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/NewCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
8484
$process = Process::fromShellCommandline(implode(' && ', $commands), $directory, null, null, null);
8585

8686
if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {
87-
$process->setTty(true);
87+
try {
88+
$process->setTty(true);
89+
} catch (RuntimeException $e) {
90+
$output->writeln('Warning: '.$e->getMessage());
91+
}
8892
}
8993

9094
$process->run(function ($type, $line) use ($output) {

0 commit comments

Comments
 (0)