We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd64a54 commit ec9182bCopy full SHA for ec9182b
pkg/cmd/compute/exec.go
@@ -68,6 +68,7 @@ func newComputeExec() *cobra.Command {
68
// nolint:wrapcheck
69
return err
70
}
71
+ defer stream.Close()
72
73
for stream.Receive() {
74
msg := stream.Msg()
@@ -78,6 +79,7 @@ func newComputeExec() *cobra.Command {
78
79
fmt.Fprint(os.Stderr, v.Stderr)
80
case *civ1.ExecuteCommandResponse_ExitCode:
81
if v.ExitCode != 0 {
82
+ stream.Close()
83
os.Exit(int(v.ExitCode))
84
85
0 commit comments