Skip to content

Commit 0e419c6

Browse files
committed
Added missing part of b03ecab
1 parent 3f9e2f0 commit 0e419c6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: builder_utils/utils.go

-4
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,6 @@ func PrepareCommandForRecipe(ctx *types.Context, buildProperties properties.Map,
502502
return nil, i18n.WrapError(err)
503503
}
504504

505-
if ctx.Verbose {
506-
logger.UnformattedFprintln(os.Stdout, commandLine)
507-
}
508-
509505
return command, nil
510506
}
511507

Diff for: utils/utils.go

+3
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ const (
303303
)
304304

305305
func ExecCommand(ctx *types.Context, command *exec.Cmd, stdout int, stderr int) ([]byte, []byte, error) {
306+
if ctx.Verbose {
307+
ctx.GetLogger().UnformattedFprintln(os.Stdout, PrintableCommand(command.Args))
308+
}
306309

307310
if stdout == Capture {
308311
buffer := &bytes.Buffer{}

0 commit comments

Comments
 (0)