Confirm before installing dependencies on prepare

This commit is contained in:
Kota Kanbe
2016-10-12 20:13:37 +09:00
parent cb5a6f38d6
commit 21beb396b4
6 changed files with 119 additions and 28 deletions

View File

@@ -149,10 +149,9 @@ func (p *PrepareCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{
return subcommands.ExitFailure
}
logger.Info("Installing...")
if errs := scan.Prepare(); 0 < len(errs) {
for _, e := range errs {
logger.Errorf("Failed: %s", e)
logger.Errorf("Failed to prepare: %s", e)
}
return subcommands.ExitFailure
}