mirror of https://github.com/jetkvm/kvm.git
Compare commits
No commits in common. "f9bc3d66d6deb895f80788bf8df958f391e398d9" and "0ef128e6f2f813cb1715e8f716922523e7dba6e7" have entirely different histories.
f9bc3d66d6
...
0ef128e6f2
4
ota.go
4
ota.go
|
|
@ -261,9 +261,7 @@ func verifyFile(path string, expectedHash string, verifyProgress *float32, scope
|
||||||
}
|
}
|
||||||
|
|
||||||
// close the file so we can rename below
|
// close the file so we can rename below
|
||||||
if err := fileToHash.Close(); err != nil {
|
fileToHash.Close()
|
||||||
return fmt.Errorf("error closing file: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
hashSum := hex.EncodeToString(hash.Sum(nil))
|
hashSum := hex.EncodeToString(hash.Sum(nil))
|
||||||
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")
|
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue