Skip to content

Commit

Permalink
Fixes installation loop (#436)
Browse files Browse the repository at this point in the history
The loop is caused by untar failing due to the files already
existing on the system. We set `unlink: true` so existing
files are overwritten.
  • Loading branch information
andreban authored Jan 6, 2021
1 parent 95eecbc commit 9b6db83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export async function untar(
await extractTar({
file: tarFile,
cwd: destinationPath,
unlink: true,
});
if (deleteZipWhenDone) {
fs.unlinkSync(tarFile);
Expand Down

0 comments on commit 9b6db83

Please sign in to comment.