Fix hash if statement

This commit is contained in:
Michael Taufen 2019-02-20 16:56:00 -08:00
parent 3baab4dc35
commit cf3ad9c655

View File

@ -129,7 +129,7 @@ function MustDownload-File {
continue
}
# Attempt to validate the hash
if ($Hash -ne $null) {
if ($Hash) {
Try {
Validate-SHA1 -Hash $Hash -Path $OutFile
} Catch {