Skip to content

Commit

Permalink
Skip root folder for cached tarballs as well as in fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris committed Jan 20, 2016
1 parent 8957ebe commit 3805eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function read (uid) {
}

function fetch (dest, uid, cb) {
var untar = tar.extract(dest)
var untar = tar.extract(dest, {strip: 1})
read(uid).on('error', cb)
.pipe(gunzip()).on('error', cb)
.pipe(untar).on('error', cb)
Expand Down

0 comments on commit 3805eb9

Please sign in to comment.