There was an error while loading. Please reload this page.
1 parent 9433b0e commit 43a5a8bCopy full SHA for 43a5a8b
components/image-builder-bob/cmd/build.go
@@ -22,7 +22,6 @@ var buildCmd = &cobra.Command{
22
log.Init("bob", "", true, true)
23
log := log.WithField("command", "build")
24
25
-t0 := time.Now()
26
if os.Geteuid() != 0 {
27
log.Fatal("must run as root")
28
}
@@ -41,13 +40,7 @@ var buildCmd = &cobra.Command{
41
40
42
err = b.Build()
43
if err != nil {
44
-log.WithError(err).Error("build failed")
45
-
46
-// make sure we're running long enough to have our logs read
47
-if dt := time.Since(t0); dt < 5*time.Second {
48
-time.Sleep(10 * time.Second)
49
-}
50
+log.WithError(err).Fatal("build failed")
51
return
52
53
},
0 commit comments