Skip to content

Commit 42d3911

Browse files
committed
fix: windows error on setFilePermission
1 parent 344acfb commit 42d3911

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.js

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const setFilePermission = (dir, permission) => {
2626
if (fs.existsSync(dir)) {
2727
const fd = fs.openSync(dir, 'r')
2828
fs.fchmodSync(fd, permission)
29+
fs.closeSync(fd)
2930
}
3031
} catch (error) {
3132
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)