Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 57ce420

Browse files
Always deleting octorun zip file when extracting
Until download functionality is implemented that checks the MD5, we should clear out the zip file before extracting.
1 parent 977b32e commit 57ce420

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GitHub.Api/Installer/OctorunInstaller.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public ITask<NPath> SetupOctorunIfNeeded()
5656

5757
private NPath GrabZipFromResources()
5858
{
59-
if (!installDetails.ZipFile.FileExists())
60-
{
61-
AssemblyResources.ToFile(ResourceType.Generic, "octorun.zip", installDetails.BaseZipPath, environment);
62-
}
59+
installDetails.ZipFile.DeleteIfExists();
60+
61+
AssemblyResources.ToFile(ResourceType.Generic, "octorun.zip", installDetails.BaseZipPath, environment);
62+
6363
return installDetails.ZipFile;
6464
}
6565

0 commit comments

Comments
 (0)