Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-05-03 10:35:58 +0400
committerisaacs <i@izs.me>2010-05-03 10:35:58 +0400
commitf384ab576cc8f7e5f085b29783d9a282aaf6e9da (patch)
tree5e34b054a385f24710d3eb3468cb04830908ecde /lib
parentcaea1585548861f74e21c40274152e0c1f63b896 (diff)
Don't try to link the lifecycle env vars as bins.
Diffstat (limited to 'lib')
-rw-r--r--lib/activate.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/activate.js b/lib/activate.js
index a500d8215..9ad11d576 100644
--- a/lib/activate.js
+++ b/lib/activate.js
@@ -89,9 +89,9 @@ function link (from, to, cb) {
function linkBins (pkg, cb) {
if (!pkg.bin) return cb()
var steps = []
- for (var i in pkg.bin) {
- var to = path.join(process.installPrefix, "bin", i),
- from = to+"-"+pkg.version
+ for (var i in pkg.bin) if (!i.charAt(0) === "_") {
+ var to = path.join(process.installPrefix, "bin", i)
+ , from = to+"-"+pkg.version
steps.push([link, from, to])
}
steps.push(cb)