pkg/bindings: on terminal attach always wait for stdout to be done

Do not exit early just because stdin copy was done.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-09-12 19:13:47 +02:00
parent 7ff07b6e0c
commit 2702156bd7

View File

@@ -180,7 +180,7 @@ func Attach(ctx context.Context, nameOrID string, stdin io.Reader, stdout io.Wri
return err
}
return nil
return <-stdoutChan
}
}
} else {