mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue