summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-03-13 09:45:01 -0700
committerisaacs <i@izs.me>2012-03-13 10:00:59 -0700
commit8b79a31333dd9ae1fc745ac691f224beaf063ba0 (patch)
tree3692bd2d9645fd1da3705490982bc8b6f36cb0e7 /tools
parent1cdadb1e3b6108bb636213debacf2f93166fbf83 (diff)
downloadandroid-node-v8-8b79a31333dd9ae1fc745ac691f224beaf063ba0.tar.gz
android-node-v8-8b79a31333dd9ae1fc745ac691f224beaf063ba0.tar.bz2
android-node-v8-8b79a31333dd9ae1fc745ac691f224beaf063ba0.zip
shebang should make file executable as well
Diffstat (limited to 'tools')
-rw-r--r--tools/installer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/installer.js b/tools/installer.js
index 507731b7a6..88822683fb 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