Ignore hard links as well
This commit is contained in:
parent
8550244376
commit
c62661e5a7
|
@ -21,8 +21,8 @@ function stripNamePrefix(headers) {
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ignoreSymlinks(file, headers) {
|
function ignoreLinks(file, headers) {
|
||||||
return headers.type === "symlink";
|
return headers.type === "link" || headers.type === "symlink";
|
||||||
}
|
}
|
||||||
|
|
||||||
function extractResponse(response, outputDir) {
|
function extractResponse(response, outputDir) {
|
||||||
|
@ -30,7 +30,7 @@ function extractResponse(response, outputDir) {
|
||||||
const extract = tar.extract(outputDir, {
|
const extract = tar.extract(outputDir, {
|
||||||
readable: true, // All dirs/files should be readable.
|
readable: true, // All dirs/files should be readable.
|
||||||
map: stripNamePrefix,
|
map: stripNamePrefix,
|
||||||
ignore: ignoreSymlinks
|
ignore: ignoreLinks
|
||||||
});
|
});
|
||||||
|
|
||||||
response.body
|
response.body
|
||||||
|
|
Loading…
Reference in New Issue