diff --git a/scripts/checkPrerequisites.ps1 b/scripts/checkPrerequisites.ps1 index b8aeb70..d3861c9 100644 --- a/scripts/checkPrerequisites.ps1 +++ b/scripts/checkPrerequisites.ps1 @@ -7,8 +7,6 @@ function CheckPrerequisites () { if ($null -eq $(Get-Command "dotnet" -ErrorAction SilentlyContinue)) { throw "dotnet not found in path." } - - CheckLastExitCode if ($PSVersionTable.PSVersion.Major -lt 5) { throw "Incompatible Powershell version. Must be 5 or later." diff --git a/scripts/sign.ps1 b/scripts/sign.ps1 index dcf3455..7575e3a 100644 --- a/scripts/sign.ps1 +++ b/scripts/sign.ps1 @@ -67,11 +67,12 @@ function SignFile( $projectDir, $filePath, $dryRun) { foreach ($time in $timeservers) { try { Write-Host "Command: $signTool sign /f `"$installerCert`" /p `"PASSWORD`" /d `"RavenDB`" /du `"https://ravendb.net`" /t `"$time`" /v /debug `"$filePath`"" - exec { & $signTool sign /f "$installerCert" /p "$certPassword" /fd SHA256 /d "RavenDB" /du "https://ravendb.net" /tr "$time" /td SHA256 /v /debug "$filePath" } + & $signTool sign /f "$installerCert" /p "$certPassword" /fd SHA256 /d "RavenDB" /du "https://ravendb.net" /tr "$time" /td SHA256 /v /debug "$filePath" CheckLastExitCode return } catch { + Write-Error $_ continue } }