Skip to content

Commit

Permalink
Make bins 0755:
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 19, 2011
1 parent 2180f3c commit 31e4478
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ function linkBins (pkg, binroot, versioned, cb) {
log.verbose(i+" "+pkg.bin[i], "linkBin")
var to = path.join(binroot, i+(versioned ? "@"+pkg.version : ""))
, from = path.join(npm.dir, pkg.name, pkg.version, "package", pkg.bin[i])
linkIfExists(from, to, cb)
linkIfExists(from, to, function (er) {
if (er) return cb(er)
fs.chmod(to, 0755, cb)
})
}, log.er(cb, "failed to link bins"))
}

Expand Down

0 comments on commit 31e4478

Please sign in to comment.