From 42d3911da3c4b4fbe1b9c857058a4811f1c1f860 Mon Sep 17 00:00:00 2001 From: Pippo Raimondi Date: Thu, 7 Apr 2022 16:39:34 +0100 Subject: [PATCH] fix: windows error on setFilePermission --- src/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.js b/src/utils.js index 18bc870..ef22237 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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