Small fixes

This commit is contained in:
Ryan Shpeherd
2026-10-28 10:09:30 -04:00
parent 554f20a1e2
commit 2242697200
2 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -73,8 +73,7 @@ sub get_hash {
# --- Compute SHA-256 hash of the file ---
return undef unless -f $file_path && -r $file_path;
open(my $fh, '<:raw', $file_path) or do { warn "Cannot open $file_path: $!"; return undef; };
my $hash = sha256_hex($fh);
close($fh);
my $hash = Digest::SHA->new(256)->addfile($fh)->hexdigest; close($fh);
return $hash;
}