From 9e87a5ce2ad726f1e91a1e9101275fce26484bbc Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Tue, 13 Jun 2023 18:23:10 -0400 Subject: [PATCH] Skip hash directory for updater --- Updater/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Updater/Program.cs b/Updater/Program.cs index 1723fa43..93a5c5e3 100644 --- a/Updater/Program.cs +++ b/Updater/Program.cs @@ -91,8 +91,11 @@ namespace Updater string dirName = new DirectoryInfo(dir).Name; string destDir = Path.Combine(folderDir, dirName + @"\"); - if (!dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase) // Let's keep the users custom hashes in tact - && Directory.Exists(destDir)) + //Skip hash directory + if (dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase)) + continue; + + if (Directory.Exists(destDir)) { Directory.Delete(destDir, true); }