From cf3ad9c655d3ce13d5d193127017a2ac367af948 Mon Sep 17 00:00:00 2001 From: Michael Taufen Date: Wed, 20 Feb 2019 16:56:00 -0800 Subject: [PATCH] Fix hash if statement --- cluster/gce/win1803/common.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/win1803/common.psm1 b/cluster/gce/win1803/common.psm1 index dc67eac8614..f345ac2d3ae 100644 --- a/cluster/gce/win1803/common.psm1 +++ b/cluster/gce/win1803/common.psm1 @@ -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 {