Fix 'blind_update' regression
This commit is contained in:
parent
9b30223b09
commit
2acf76e465
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue