mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
Revert "init: Honor config-dir flag when it is passed as global or local flag (#3337)"
This reverts commit e2ef95af7d.
This is reverted since the previous patch caused crashes.
This commit is contained in:
+4
-4
@@ -43,10 +43,10 @@ func mainVersion(ctx *cli.Context) {
|
||||
if len(ctx.Args()) != 0 {
|
||||
cli.ShowCommandHelpAndExit(ctx, "version", 1)
|
||||
}
|
||||
|
||||
setGlobalsFromContext(ctx)
|
||||
|
||||
checkUpdate()
|
||||
// Set global quiet flag.
|
||||
if ctx.Bool("quiet") || ctx.GlobalBool("quiet") {
|
||||
return
|
||||
}
|
||||
|
||||
console.Println("Version: " + Version)
|
||||
console.Println("Release-Tag: " + ReleaseTag)
|
||||
|
||||
Reference in New Issue
Block a user