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:
Harshavardhana
2016-11-23 17:27:42 -08:00
parent 12c1abed98
commit dd74e5a809
5 changed files with 68 additions and 89 deletions

View File

@@ -265,9 +265,8 @@ func getReleaseUpdate(updateURL string, duration time.Duration) (updateMsg updat
// main entry point for update command.
func mainUpdate(ctx *cli.Context) {
setGlobalsFromContext(ctx)
if globalQuiet {
// Set global quiet flag.
if ctx.Bool("quiet") || ctx.GlobalBool("quiet") {
return
}