Fixed: Fix bootstrap checksum check if it contained leading zeros

This commit is contained in:
agnostic-apollo 2022-01-08 03:30:15 +05:00
parent b01a738791
commit 480f92880c
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ def downloadBootstrap(String arch, String expectedChecksum, String version) {
digest.update(buffer, 0, readBytes)
}
def checksum = new BigInteger(1, digest.digest()).toString(16)
while (checksum.length() < 64) { checksum = "0" + checksum }
if (checksum == expectedChecksum) {
return
} else {