Compare commits

..

No commits in common. "f9bc3d66d6deb895f80788bf8df958f391e398d9" and "0ef128e6f2f813cb1715e8f716922523e7dba6e7" have entirely different histories.

2 changed files with 2 additions and 4 deletions

4
ota.go
View File

@ -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")