diff options
author | isaacs <i@izs.me> | 2011-03-29 19:22:59 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-03-29 19:22:59 +0400 |
commit | 42730adf3fb9138b40dd1b949b8537ef88d1e128 (patch) | |
tree | d62bea473b11fe30608f751bc9bb96a1f62a28f6 /lib | |
parent | be70ce767010a67fd7e169c3467596612baeacd5 (diff) |
Closes GH-759 Ignore OS X resource files in tarballs.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/tar.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/tar.js b/lib/utils/tar.js index 7f1222491..b873bd08b 100644 --- a/lib/utils/tar.js +++ b/lib/utils/tar.js @@ -201,6 +201,9 @@ function gunzTarPerm (tarball, tmp, dMode, fMode, uid, gid, cb) { ,function (er) { if (er) return cb(er) fs.readdir(tmp, function (er, folder) { + folder = folder.filter(function (f) { + return !f.match(/^\._/) + }) cb(er, folder && path.resolve(tmp, folder[0])) }) }) |