1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-21 19:48:53 +02:00

fix(permissions) allow deletion of errors file (#2293)

This commit is contained in:
Oliver Nocon 2020-11-02 12:34:28 +01:00 committed by GitHub
parent c9b50d7f10
commit 9725b2a9d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ func (f *FatalHook) Fire(entry *logrus.Entry) error {
if err != nil {
// ignore errors, since we don't want to break the logging flow
errDetails, _ := json.Marshal(&details)
ioutil.WriteFile(filePath, errDetails, 0655)
ioutil.WriteFile(filePath, errDetails, 0666)
}
return nil