get rid of empty output

This commit is contained in:
2025-05-22 18:45:10 +01:00
parent 27a0f5b988
commit b0517a18ba
2 changed files with 5 additions and 2 deletions

View File

@@ -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),

View File

@@ -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>