From d3fd0974d558aa994f9f5da7ff84dceb2c7e1c90 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Sun, 28 Feb 2016 16:04:48 +0100 Subject: [PATCH] Fixing getDefaultConfigDir It seems it's not really checking the right folder. Signed-off-by: Vincent Demeester --- cliconfig/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliconfig/config.go b/cliconfig/config.go index 710dca7a2d..dd4241b764 100644 --- a/cliconfig/config.go +++ b/cliconfig/config.go @@ -32,7 +32,7 @@ var ( func getDefaultConfigDir(confFile string) string { confDir := filepath.Join(homedir.Get(), confFile) // if the directory doesn't exist, maybe we called docker with sudo - if _, err := os.Stat(configDir); err != nil { + if _, err := os.Stat(confDir); err != nil { if os.IsNotExist(err) { return filepath.Join(homedir.GetWithSudoUser(), confFile) }