mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-10-01 09:47:12 +00:00
Add filename to warning for files without hash in the manifest
This commit is contained in:
+1
-1
@@ -445,7 +445,7 @@ function hash_for_url($manifest, $url, $arch) {
|
||||
function check_hash($file, $hash, $app_name) {
|
||||
$file = fullpath $file
|
||||
if(!$hash) {
|
||||
warn "Warning: No hash in manifest. SHA256 is:`n $(compute_hash $file) 'sha256')"
|
||||
warn "Warning: No hash in manifest. SHA256 for '$(fname $file)' is:`n $(compute_hash $file 'sha256')"
|
||||
return $true, $null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user