From 57eaf7c3db87560e38ca19380e46c8807eec9b1f Mon Sep 17 00:00:00 2001 From: Daniel Marquard Date: Mon, 27 Jun 2016 00:55:26 -0400 Subject: [PATCH] Make the config's full directory path (#160) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7e14d35..e5e8eeb 100644 --- a/main.go +++ b/main.go @@ -199,7 +199,7 @@ func createConfigWhenNotExists() { logrus.Warnln("An error occurred while accessing config binary data. A new config file will not be written.") } else { filePath := os.ExpandEnv("$HOME/.config/mumbledj/config.yaml") - os.Mkdir(os.ExpandEnv("$HOME/.config/mumbledj"), 0777) + os.MkdirAll(os.ExpandEnv("$HOME/.config/mumbledj"), 0777) writeErr := ioutil.WriteFile(filePath, configFile, 0644) if writeErr == nil { logrus.WithFields(logrus.Fields{