From 56073be9af4a2a78a21f96ef120870ab688004ca Mon Sep 17 00:00:00 2001 From: Freddy Kristiansen Date: Mon, 11 Sep 2023 21:47:50 +0200 Subject: [PATCH] Code signing in Preview with HSM fails after Update (#705) This is a fix for issue #704 Co-authored-by: freddydk --- Actions/AL-Go-Helper.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Actions/AL-Go-Helper.ps1 b/Actions/AL-Go-Helper.ps1 index 228406f81..b1d5f20d9 100644 --- a/Actions/AL-Go-Helper.ps1 +++ b/Actions/AL-Go-Helper.ps1 @@ -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" }