Skip to content

Commit

Permalink
Disable tty on non interactive mode (#3517)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalop authored and jmolivas committed Sep 9, 2017
1 parent dfd9413 commit 38b92be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Database/RestoreCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$processBuilder = new ProcessBuilder(['-v']);
$process = $processBuilder->getProcess();
$process->setWorkingDirectory($this->appRoot);
$process->setTty('true');
$process->setTty($input->isInteractive());
$process->setCommandLine($command);
$process->run();

Expand Down

0 comments on commit 38b92be

Please sign in to comment.