Skip to content

Commit 5f06db6

Browse files
authored
Merge pull request #13 from aminya/chmod
fix: fix the chmod function on Linux/MacOS
2 parents 27c406c + b82a6f4 commit 5f06db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function makeExecutable(binary = [], binaryFolder = '') {
142142
try {
143143
if (file == 'Codecs')
144144
file = 'Codecs' + sep + 'Rar.so'
145-
fs.chmodSync(join(binaryFolder, file), 777);
145+
fs.chmodSync(join(binaryFolder, file), 0o777);
146146
} catch (err) {
147147
console.error(err);
148148
}

0 commit comments

Comments
 (0)