command/build: Say the build is finished when it is finished

This commit is contained in:
Mitchell Hashimoto 2013-06-07 21:36:26 -07:00
parent 721ec08de9
commit 05e047a355
1 changed files with 3 additions and 2 deletions

View File

@ -136,8 +136,9 @@ func (c Command) Run(env packer.Environment, args []string) int {
defer wg.Done()
log.Printf("Starting build run: %s", b.Name())
artifacts[b.Name()] = b.Run(buildUis[b.Name()])
log.Printf("Build finished: %s", b.Name())
ui := buildUis[b.Name()]
artifacts[b.Name()] = b.Run(ui)
ui.Say("Build finished.")
}(b)
}