mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
fix: convert download hashes to lower before compare (#199)
This commit is contained in:
parent
abf701560d
commit
1786e47806
@ -268,7 +268,7 @@ func teeHashes(hashesToObtain []string, hashes map[string]string,
|
||||
calculatedHash := mainHasher.HashToString(mainHasher.Sum(nil))
|
||||
|
||||
// Check if the hash of the downloaded file matches the expected hash
|
||||
if calculatedHash != validateHash {
|
||||
if strings.ToLower(calculatedHash) != strings.ToLower(validateHash) {
|
||||
return fmt.Errorf(
|
||||
"%s hash of downloaded file does not match with expected hash!\n download hash: %s\n expected hash: %s\n",
|
||||
validateHashFormat, calculatedHash, validateHash)
|
||||
|
Loading…
x
Reference in New Issue
Block a user