Commit 2981da4e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

fmt

parent aaf02451
......@@ -222,7 +222,7 @@ func (b *Builder) Prepare(raws ...interface{}) error {
if _, err := os.Stat(b.config.OutputDir); err == nil {
if b.config.PackerForce {
log.Printf("Build forced, removing existing output directory: %s", string(b.config.OutputDir))
os.RemoveAll(b.config.OutputDir)
os.RemoveAll(b.config.OutputDir)
} else {
errs = append(errs, errors.New("Output directory already exists. It must not exist."))
}
......
......@@ -178,7 +178,7 @@ func (b *Builder) Prepare(raws ...interface{}) error {
if _, err := os.Stat(b.config.OutputDir); err == nil {
if b.config.PackerForce {
log.Printf("Build forced, removing existing output directory: %s", string(b.config.OutputDir))
os.RemoveAll(b.config.OutputDir)
os.RemoveAll(b.config.OutputDir)
} else {
errs = append(errs, errors.New("Output directory already exists. It must not exist."))
}
......
......@@ -47,7 +47,7 @@ type Build interface {
// strictly prohibited.
SetDebug(bool)
// SetForce will enable/disable forcing a build when artifacts exist.
// SetForce will enable/disable forcing a build when artifacts exist.
//
// When SetForce is set to true, existing artifacts from the build are
// deleted prior to the build.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment