From e2e73f4028fb71b2c88bf2c7c010919bdd0c86d8 Mon Sep 17 00:00:00 2001 From: Vaidas Jablonskis Date: Mon, 20 May 2024 13:52:06 +0300 Subject: [PATCH] hack: fix contentDir perms in content-fetcher --- hack/assistant-setup/content-fetcher/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hack/assistant-setup/content-fetcher/main.go b/hack/assistant-setup/content-fetcher/main.go index 24b2839..89a1e35 100644 --- a/hack/assistant-setup/content-fetcher/main.go +++ b/hack/assistant-setup/content-fetcher/main.go @@ -71,7 +71,7 @@ func main() { log.Infof("Found %d pages to fetch", len(pagesToFetch)) log.Infof("Creating %q directory if doesn't exist...", contentDir) - err = os.MkdirAll(contentDir, os.ModePerm) + err = os.MkdirAll(contentDir, 0o750) loggerx.ExitOnError(err, "while creating directory") errs := multierror.New() @@ -105,7 +105,6 @@ func main() { }), retry.Delay(retryInterval), ) - if err != nil { errs = multierror.Append(errs, err) }