diff --git a/swap-install.ps1 b/swap-install.ps1 index aa9df2e..04c9d1c 100644 --- a/swap-install.ps1 +++ b/swap-install.ps1 @@ -120,8 +120,12 @@ try { "[$(Get-Date -Format 'HH:mm:ss')] verify mismatch disk baseline, retry once" | Add-Content $log Wait-HandleReleased | Out-Null $retryHash = Invoke-SwapInstall 'retry' - if ($retryHash -and $firstHash -eq $retryHash -and $retryHash -ne $before.hash) { - "[$(Get-Date -Format 'HH:mm:ss')] verify pass (installer deterministic output $($retryHash.Substring(0, 12)))" | Add-Content $log + if ($retryHash -and $firstHash -eq $retryHash) { + if ($retryHash -ne $before.hash) { + "[$(Get-Date -Format 'HH:mm:ss')] verify pass (installer deterministic output $($retryHash.Substring(0, 12)))" | Add-Content $log + } else { + "[$(Get-Date -Format 'HH:mm:ss')] verify pass (already up to date, same version reinstalled)" | Add-Content $log + } $pass = $true } }