Skip to content

Commit

Permalink
update hungups on windows because of file delete can only happen all …
Browse files Browse the repository at this point in the history
…file handlers are delted
  • Loading branch information
cedric05 committed Mar 27, 2021
1 parent 3719e80 commit 18f3afe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export async function updateDothttpIfAvailable(globalStorageDir: string) {
const url = fetchDownloadUrl(versionData)
await downloadDothttp(downloadLocation, url!);
const originalLocation = path.join(globalStorageDir, 'cli');
ApplicationServices.get().clientHanler.close();
fs.rmdirSync(originalLocation, { recursive: true });
fs.renameSync(downloadLocation, originalLocation)
getExePath(path.join(originalLocation, 'cli'));
Expand Down

0 comments on commit 18f3afe

Please sign in to comment.