From 00e3e80d43fbdccc70ef4a2ead650ec5b319ad81 Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Thu, 4 May 2023 21:23:06 +0200 Subject: [PATCH] fix ignored list --- osuUtil.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osuUtil.js b/osuUtil.js index 44392a6..c28f21a 100644 --- a/osuUtil.js +++ b/osuUtil.js @@ -90,8 +90,10 @@ async function filesThatNeedUpdate(osuPath, updateFiles) { const fileHash = updatedFile.file_hash; const fileURL = updatedFile.url_full; + if (ignoredOsuEntities.includes(fileName)) continue; + const fileOnDisk = path.join(osuPath, fileName); - if (await fu.existsAsync(fileOnDisk) && !ignoredOsuEntities.includes(fileName)) { + if (await fu.existsAsync(fileOnDisk)) { const binaryFileContents = await fs.promises.readFile(fileOnDisk); const existingFileMD5 = crypto.createHash("md5").update(binaryFileContents).digest("hex"); if (existingFileMD5.toLowerCase() != fileHash.toLowerCase()) {