feat: throw an error if log4j file got changed

This commit is contained in:
HerozDotExe 2025-12-07 17:20:50 +01:00
parent 4c33ab960b
commit 37c2282052

View file

@ -18,6 +18,7 @@ export async function getArgument(
url: versionManifest.logging.client.file.url,
path: xmlDestination,
});
}
if (
hash("sha1", await fs.readFile(xmlDestination, { encoding: "utf-8" })) !==
@ -25,7 +26,6 @@ export async function getArgument(
) {
throw new Error("Wrong hash for log4j's xml config");
}
}
return versionManifest.logging.client.argument.replace(
"${path}",