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