fix(updater): hash mismatch (#192)

This commit is contained in:
Felix Angelov
2023-03-28 19:01:42 -05:00
committed by GitHub
parent 8d13d02813
commit f2918cfca6
+1 -1
View File
@@ -151,7 +151,7 @@ fn update_internal(config: &ResolvedConfig) -> anyhow::Result<UpdateStatus> {
inflate(&download_path, &base_path, &output_path)?;
// Check the hash before moving into place.
let hash_ok = check_hash(&download_path, &patch.hash)?;
let hash_ok = check_hash(&output_path, &patch.hash)?;
if !hash_ok {
return Err(UpdateError::InvalidState("Hash mismatch".to_string()).into());
}