Skip to content

Commit

Permalink
Merge pull request #77 from uktrade/fix/issues-69-setFilePermission-w…
Browse files Browse the repository at this point in the history
…indows

Fix windows error on setFilePermission
  • Loading branch information
PippoRaimondi authored Apr 7, 2022
2 parents 344acfb + 42d3911 commit 94d13b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const setFilePermission = (dir, permission) => {
if (fs.existsSync(dir)) {
const fd = fs.openSync(dir, 'r')
fs.fchmodSync(fd, permission)
fs.closeSync(fd)
}
} catch (error) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 94d13b7

Please sign in to comment.