Skip to content

Commit

Permalink
Code signing in Preview with HSM fails after Update (#705)
Browse files Browse the repository at this point in the history
This is a fix for issue #704

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
  • Loading branch information
freddydk and freddydk authored Sep 11, 2023
1 parent 13989cd commit 56073be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Actions/AL-Go-Helper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2179,13 +2179,14 @@ function RetryCommand {
[Parameter(Mandatory = $false)]
[int]$MaxRetries = 3,
[Parameter(Mandatory = $false)]
[int]$RetryDelaySeconds = 5
[int]$RetryDelaySeconds = 5,
[Object[]] $argumentList
)

$retryCount = 0
while ($retryCount -lt $MaxRetries) {
try {
Invoke-Command $Command
Invoke-Command $Command -ArgumentList $argumentList
if ($LASTEXITCODE -ne 0) {
throw "Command failed with exit code $LASTEXITCODE"
}
Expand Down

0 comments on commit 56073be

Please sign in to comment.