Skip to content

Commit 8b79a31

Browse files
committed
shebang should make file executable as well
1 parent 1cdadb1 commit 8b79a31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/installer.js

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ function shebang(line, file) {
6666
if (content !== newContent) {
6767
fs.writeFileSync(file, newContent, 'utf8');
6868
}
69+
var mode = parseInt('0777', 8) & (~process.umask());
70+
fs.chmodSync(file, mode);
6971
}
7072

7173
// Run every command in queue, one-by-one

0 commit comments

Comments
 (0)