mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
init: Honor config-dir flag when it is passed as global or local flag (#3337)
setGlobalsFromContext() is added to sets global variable after parsing command line arguments.
This commit is contained in:
committed by
Harshavardhana
parent
d711ff454e
commit
e2ef95af7d
@@ -265,8 +265,9 @@ func getReleaseUpdate(updateURL string, duration time.Duration) (updateMsg updat
|
||||
|
||||
// main entry point for update command.
|
||||
func mainUpdate(ctx *cli.Context) {
|
||||
// Set global quiet flag.
|
||||
if ctx.Bool("quiet") || ctx.GlobalBool("quiet") {
|
||||
|
||||
setGlobalsFromContext(ctx)
|
||||
if globalQuiet {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user