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 02:24:15 +0400
committerisaacs <i@izs.me>2010-05-03 05:07:49 +0400
commit0c3012c2a8944daa6b2ee402ba4462efe762a80b (patch)
treeddbc79dc3961158eaaf619bb2c716a3a05c42969 /lib
parent6256948154442ed6989d110763f974b0d942bd61 (diff)
Clean up tarball and temp folder more thoroughly
Diffstat (limited to 'lib')
-rw-r--r--lib/install.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index 7f53e216f..f3e2f9ab0 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -102,7 +102,8 @@ function fetchAndInstall (tarball, cb) {
( [install, [target]]
// clean up
, [log, target, "deleting"]
- , [fs, "unlink", target]
+ , [rm, target]
+ , [rm, target.replace(/\.tgz$/, '')]
, cb
)
})