Fix build issue.
This commit is contained in:
@@ -167,13 +167,10 @@ func Main() {
|
|||||||
// Do not print update messages, if quiet flag is set.
|
// Do not print update messages, if quiet flag is set.
|
||||||
if !globalQuiet {
|
if !globalQuiet {
|
||||||
if strings.HasPrefix(ReleaseTag, "RELEASE.") && c.Args().Get(0) != "update" {
|
if strings.HasPrefix(ReleaseTag, "RELEASE.") && c.Args().Get(0) != "update" {
|
||||||
updateMsg, _, err := getReleaseUpdate(minioUpdateStableURL)
|
updateMsg := getReleaseUpdate(minioUpdateStableURL, true)
|
||||||
if err != nil {
|
if updateMsg.Update {
|
||||||
// Ignore any errors during getReleaseUpdate(), possibly
|
console.Println(updateMsg)
|
||||||
// because of network errors.
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
console.Println(updateMsg)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user