Commit 2a87a8a5 authored by Andrew Gerrand's avatar Andrew Gerrand

misc/makerelease: a couple of small fixes

Change-Id: Iec19d6152b95ba67daac366b32d42f69e1dba9a4
Reviewed-on: https://go-review.googlesource.com/2951Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent daa64ddf
...@@ -141,10 +141,6 @@ func main() { ...@@ -141,10 +141,6 @@ func main() {
os.Exit(2) os.Exit(2)
} }
flag.Parse() flag.Parse()
if *tag == "" {
fmt.Fprintln(os.Stderr, "you must specify a -tag")
os.Exit(2)
}
if flag.NArg() == 0 { if flag.NArg() == 0 {
flag.Usage() flag.Usage()
} }
...@@ -210,6 +206,10 @@ func main() { ...@@ -210,6 +206,10 @@ func main() {
} }
} }
} }
if *tag == "" {
fmt.Fprintln(os.Stderr, "you must specify a -tag")
os.Exit(2)
}
if err := b.Do(); err != nil { if err := b.Do(); err != nil {
log.Printf("%s: %v", targ, err) log.Printf("%s: %v", targ, err)
ok = false ok = false
...@@ -755,6 +755,7 @@ func setupOAuthClient() error { ...@@ -755,6 +755,7 @@ func setupOAuthClient() error {
ClientSecret: "8YLFgOhXIELWbO-NtF3iqIQz", ClientSecret: "8YLFgOhXIELWbO-NtF3iqIQz",
Endpoint: google.Endpoint, Endpoint: google.Endpoint,
Scopes: []string{storage.DevstorageRead_writeScope}, Scopes: []string{storage.DevstorageRead_writeScope},
RedirectURL: "oob",
} }
url := config.AuthCodeURL("junk") url := config.AuthCodeURL("junk")
fmt.Println("Visit the following URL, obtain an authentication" + fmt.Println("Visit the following URL, obtain an authentication" +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment