mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-26 18:32:57 +00:00
fix(deploader): ignore leading/trailing whitespace from checksum files
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1307,7 +1307,7 @@ public class DependencyLoaderImpl {
|
||||
|
||||
private ChecksumStatus getChecksumStatus(Path file, String checksumType, Path checksumFile) throws IOException {
|
||||
val fileHash = hash(checksumType, file);
|
||||
val referenceHash = new String(Files.readAllBytes(checksumFile));
|
||||
val referenceHash = new String(Files.readAllBytes(checksumFile)).trim();
|
||||
if (!fileHash.equals(referenceHash)) {
|
||||
LOG.error("Failed {} checksum validation for {}.", checksumType, artifactLogName);
|
||||
checkedDelete(file);
|
||||
|
||||
Reference in new issue
Block a user