Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
shebang should make file executable as well
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 13, 2012
1 parent 1cdadb1 commit 8b79a31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ function shebang(line, file) {
if (content !== newContent) {
fs.writeFileSync(file, newContent, 'utf8');
}
var mode = parseInt('0777', 8) & (~process.umask());
fs.chmodSync(file, mode);
}

// Run every command in queue, one-by-one
Expand Down

0 comments on commit 8b79a31

Please sign in to comment.