get rid of empty output
This commit is contained in:
@@ -31,6 +31,9 @@ class RunStep implements ShouldQueue
|
||||
|
||||
$ssh = $server->sshClient()
|
||||
->onOutput(function ($type, $output) {
|
||||
if (trim($output) === '') {
|
||||
return;
|
||||
}
|
||||
if ($type === Process::OUT) {
|
||||
$this->step->update([
|
||||
'logs' => $this->step->logs . "\n" . trim($output),
|
||||
|
||||
@@ -109,10 +109,10 @@ watch(counter, () => {
|
||||
{{ step.name ?? 'Unnamed Step' }}
|
||||
</div>
|
||||
<div v-if="step.error_logs">
|
||||
{{ step.error_logs }}
|
||||
<pre class="text-xs">{{ step.error_logs }}</pre>
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ step.logs }}
|
||||
<pre class="text-xs">{{ step.logs }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user