Skip to content

Commit b0c6279

Browse files
committed
HOPEFULLY FINALLY FIXED automatic updater. Very scuffed solution btw :D
1 parent 4513af3 commit b0c6279

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Updater/Program.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ static void Main(string[] args)
4747
File.Delete(destFile);
4848
}
4949

50-
File.Move(file, destFile);
50+
try
51+
{
52+
if (File.Exists(destFile))
53+
File.Delete(destFile);
54+
55+
File.Move(file, destFile);
56+
}
57+
catch (Exception ex)
58+
{
59+
Console.WriteLine($"Skipping file '{file}': {ex.Message}");
60+
}
5161
}
5262

5363
Directory.Delete(tempExtractPath, true);

0 commit comments

Comments
 (0)