Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(util): fix extracting for Linux when interrupted before
Browse files Browse the repository at this point in the history
  • Loading branch information
evshiron committed May 10, 2017
1 parent f831d93 commit 98cb1e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/util/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ async function extractTarGz(archive: string, dest: string = dirname(archive), op
overwrite: false,
}) {

await extract(archive, dest);

const tar = join(dest, basename(archive.slice(0, -3)));

await extract(archive, dest, {
overwrite: true,
});
await extract(tar, dest);

await remove(tar);
Expand Down
1 change: 1 addition & 0 deletions test/Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ test.skip('module', async (t) => {
win: true,
x64: true,
mirror,
mute: false,
}, dir);

await builder.build();
Expand Down

0 comments on commit 98cb1e4

Please sign in to comment.