Skip to content

Commit

Permalink
Utils: Update - fix file update path slash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Jul 8, 2024
1 parent 18d17d4 commit faff1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/Update.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static void CheckMD5(IProgressReporterDialogue frmProgressReporter, string md5ur
{
try
{
var result = files.Any(task => Path.Combine(Settings.GetRunningDirectory(), task).ToLower().Equals(dll.ToLower()));
var result = files.Any(task => Path.GetFullPath(Path.Combine(Settings.GetRunningDirectory(), task)).ToLower().Equals(dll.ToLower()));
if (result == false)
File.Delete(dll);
Expand All @@ -286,7 +286,7 @@ static void CheckMD5(IProgressReporterDialogue frmProgressReporter, string md5ur
{
try
{
var result = files.Any(task => Path.Combine(Settings.GetRunningDirectory(), task).ToLower().Equals(exe.ToLower()));
var result = files.Any(task => Path.GetFullPath(Path.Combine(Settings.GetRunningDirectory(), task)).ToLower().Equals(exe.ToLower()));
if (result == false)
File.Delete(exe);
Expand Down

0 comments on commit faff1e8

Please sign in to comment.