Cleanups and minor fixups
This commit is contained in:
@@ -36,5 +36,14 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Printf("Rebuilding container...\n")
|
||||
output, err := container.Build(containerName, false)
|
||||
if err != nil {
|
||||
wwlog.Printf(wwlog.ERROR, "Could not build container %s: %s\n", containerName, err)
|
||||
os.Exit(1)
|
||||
} else {
|
||||
fmt.Printf("%s\n", output)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user