mirror of
https://github.com/golang/go
synced 2024-11-23 07:30:05 -07:00
misc/makerelease: exit with nonzero status code on error
LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/129040043
This commit is contained in:
parent
8bca148a3e
commit
00b75a237a
@ -154,6 +154,7 @@ func main() {
|
||||
log.Fatalln("setupOAuthClient:", err)
|
||||
}
|
||||
}
|
||||
ok := true
|
||||
for _, targ := range flag.Args() {
|
||||
var b Build
|
||||
if m := fileRe.FindStringSubmatch(targ); m != nil {
|
||||
@ -205,8 +206,12 @@ func main() {
|
||||
}
|
||||
if err := b.Do(); err != nil {
|
||||
log.Printf("%s: %v", targ, err)
|
||||
ok = false
|
||||
}
|
||||
}
|
||||
if !ok {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
type Build struct {
|
||||
|
Loading…
Reference in New Issue
Block a user