Fix permissions issue and doc generation issue

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Vasek - Tom C
2022-01-28 22:46:36 +01:00
parent 5de86cb1ee
commit 6f5095ec19
2 changed files with 11 additions and 6 deletions

View File

@@ -133,11 +133,10 @@ func extractModules(dest string) error {
return err
}
info, err := fs.Stat(FS, p)
if err != nil {
return err
}
return os.WriteFile(overlayPath, contents, info.Mode().Perm())
// Give exec permission on embedded file to freely use shell script
// Exclude permission linter
//nolint
return os.WriteFile(overlayPath, contents, 0700)
})
}