Skip to content

Commit

Permalink
fix some error
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 19, 2020
1 parent b0ee515 commit 83b9594
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Common/CmdRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,12 @@ protected function execute(string $command, string $workDir): void

// print output
$this->output = $output;
if ($this->printOutput && $output) {
echo $output . "\n";
if ($this->printOutput) {
if ($output) {
echo $output . "\n";
} elseif ($this->error) {
Color::println($this->error, 'red');
}
}
}

Expand Down

0 comments on commit 83b9594

Please sign in to comment.