mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-13 04:17:31 +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
+1
-1
@@ -5,7 +5,7 @@ plugins {
|
||||
group = "com.falsepattern"
|
||||
|
||||
//bump this after ANY change to the deploader!
|
||||
val deploaderVersion = 8
|
||||
val deploaderVersion = 9
|
||||
|
||||
minecraft_fp {
|
||||
java {
|
||||
|
||||
@@ -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