Skip to content

Commit d9f8722

Browse files
adjust substeps len of container setup
1 parent eca9d9a commit d9f8722

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: legacy/builder/container_setup.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ import (
2323
type ContainerSetupHardwareToolsLibsSketchAndProps struct{}
2424

2525
func (s *ContainerSetupHardwareToolsLibsSketchAndProps) Run(ctx *types.Context) error {
26-
// total number of steps in this container: 4
27-
ctx.Progress.AddSubSteps(4)
28-
defer ctx.Progress.RemoveSubSteps()
2926
commands := []types.Command{
3027
&AddAdditionalEntriesToContext{},
3128
&FailIfBuildPathEqualsSketchPath{},
3229
&LibrariesLoader{},
3330
}
31+
ctx.Progress.AddSubSteps(len(commands))
32+
defer ctx.Progress.RemoveSubSteps()
3433
for _, command := range commands {
3534
PrintRingNameIfDebug(ctx, command)
3635
err := command.Run(ctx)

0 commit comments

Comments
 (0)