Fix 'blind_update' regression

This commit is contained in:
Tom Wiesing 2023-03-16 11:29:33 +01:00
parent 9b30223b09
commit 2acf76e465
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -77,8 +77,8 @@ func (ds Stack) Up(ctx context.Context, progress io.Writer) error {
// It returns the exit code of the process. // It returns the exit code of the process.
func (ds Stack) Exec(ctx context.Context, io stream.IOStream, service, executable string, args ...string) func() int { func (ds Stack) Exec(ctx context.Context, io stream.IOStream, service, executable string, args ...string) func() int {
compose := []string{"exec"} compose := []string{"exec"}
if io.StdinIsATerminal() { if !io.StdinIsATerminal() {
compose = append(compose, "-ti") compose = append(compose, "-T")
} }
compose = append(compose, service) compose = append(compose, service)

View file

@ -14,7 +14,7 @@ import (
) )
var errBlindUpdateFailed = exit.Error{ var errBlindUpdateFailed = exit.Error{
Message: "failed to run blind update script for instance %q: exited with code %s", Message: "failed to run blind update script for instance %q: exited with code %d",
ExitCode: exit.ExitGeneric, ExitCode: exit.ExitGeneric,
} }