Skip to content
This repository
Browse code

shebang should make file executable as well

  • Loading branch information...
commit 8b79a31333dd9ae1fc745ac691f224beaf063ba0 1 parent 1cdadb1
Isaac Z. Schlueter isaacs authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  tools/installer.js
2  tools/installer.js
@@ -66,6 +66,8 @@ function shebang(line, file) {
66 66 if (content !== newContent) {
67 67 fs.writeFileSync(file, newContent, 'utf8');
68 68 }
  69 + var mode = parseInt('0777', 8) & (~process.umask());
  70 + fs.chmodSync(file, mode);
69 71 }
70 72
71 73 // Run every command in queue, one-by-one

0 comments on commit 8b79a31

Please sign in to comment.
Something went wrong with that request. Please try again.