feat: throw an error if log4j file got changed
This commit is contained in:
parent
4c33ab960b
commit
37c2282052
1 changed files with 6 additions and 6 deletions
|
|
@ -18,14 +18,14 @@ export async function getArgument(
|
|||
url: versionManifest.logging.client.file.url,
|
||||
path: xmlDestination,
|
||||
});
|
||||
}
|
||||
|
||||
if (
|
||||
hash("sha1", await fs.readFile(xmlDestination, {encoding: "utf-8"})) !==
|
||||
hash("sha1", await fs.readFile(xmlDestination, { encoding: "utf-8" })) !==
|
||||
versionManifest.logging.client.file.sha1
|
||||
) {
|
||||
throw new Error("Wrong hash for log4j's xml config");
|
||||
}
|
||||
}
|
||||
|
||||
return versionManifest.logging.client.argument.replace(
|
||||
"${path}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue