From 0885b85c7649a630843b06f9341234da2d429f64 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 29 Aug 2015 00:33:01 -0700 Subject: [PATCH 1/2] Fix typo --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index fce65008..de9e83db 100644 --- a/config.go +++ b/config.go @@ -323,7 +323,7 @@ func fixConfigV3() { fatalIf(err.Trace(), "Unable to load config.") // Update to newer version - if len(mcConfigV3.Data().(*brokenConfigV3).Aliases) == 0 || mcConfigV3.Data().(*brokenConfigV3).ACL != "" || mcConfigV3.Data().(*brokenConfigV3).Access != "" && mcConfigV3.Version() == "3" { + if len(mcConfigV3.Data().(*brokenConfigV3).Aliases) != 0 || mcConfigV3.Data().(*brokenConfigV3).ACL != "" || mcConfigV3.Data().(*brokenConfigV3).Access != "" && mcConfigV3.Version() == "3" { confV3 := new(configV3) confV3.Aliases = mcConfigV3.Data().(*brokenConfigV3).Aliases confV3.Hosts = make(map[string]hostConfig) From 0fbcfa5de06b14ef41744220a6397a210789e0e3 Mon Sep 17 00:00:00 2001 From: "Anand Babu (AB) Periasamy" Date: Sat, 29 Aug 2015 12:25:03 -0700 Subject: [PATCH 2/2] automatically enable quiet-mode if terminal capabilities are limited --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index e976e257..46ffc4b4 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,7 @@ import ( "github.com/minio/mc/pkg/console" "github.com/minio/minio/pkg/probe" "github.com/minio/pb" + "github.com/olekukonko/ts" ) // Check for the environment early on and gracefully report. @@ -162,6 +163,10 @@ func main() { app.Before = registerBefore app.ExtraInfo = func() map[string]string { + if _, e := ts.GetSize(); e != nil { + globalQuietFlag = true + } + if globalDebugFlag { return getSystemData() }