diff options
author | isaacs <i@izs.me> | 2012-03-13 09:45:01 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-13 10:00:59 -0700 |
commit | 8b79a31333dd9ae1fc745ac691f224beaf063ba0 (patch) | |
tree | 3692bd2d9645fd1da3705490982bc8b6f36cb0e7 /tools | |
parent | 1cdadb1e3b6108bb636213debacf2f93166fbf83 (diff) | |
download | node-8b79a31333dd9ae1fc745ac691f224beaf063ba0.tar.gz |
shebang should make file executable as well
Diffstat (limited to 'tools')
-rw-r--r-- | tools/installer.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/installer.js b/tools/installer.js index 507731b7a..88822683f 100644 --- a/tools/installer.js +++ b/tools/installer.js @@ -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 |