package main import ( "os" "go.wit.com/lib/gui/shell" "go.wit.com/log" ) func build() error { err := forge.Build(workingRepo, nil) pwd, _ := os.Getwd() if err == nil { log.Info("this totally worked", pwd) shell.RunEcho([]string{"ls", "-l"}) log.Info("ran ls") } else { log.Info("this totally did not work", pwd) shell.RunEcho([]string{"ls", "-l"}) log.Info("ran ls") badExit(err) } return err }