From 624ea4ea61a8ee59ce9ed2cc962e85ecea03468a Mon Sep 17 00:00:00 2001 From: Roy van de Water Date: Tue, 5 Jun 2018 10:22:30 -0700 Subject: [PATCH] We need execute permissions in order to create files in a directory --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index b13c543b4..1eff3edc8 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -101,7 +101,7 @@ func createConfig() (err error) { if _, err = os.Stat(path); os.IsNotExist(err) { fatalOnError( fmt.Sprintf("Error creating directory: '%s'", path), - os.Mkdir(path, 0644), + os.Mkdir(path, 0700), ) } else { fatalOnError(fmt.Sprintf("Error accessing '%s'", path), err)