Skip to content

Commit

Permalink
fix: windows error on setFilePermission
Browse files Browse the repository at this point in the history
  • Loading branch information
PippoRaimondi committed Apr 7, 2022
1 parent 344acfb commit 42d3911
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 42d3911

Please sign in to comment.