From 74a4b2a0deb1dc7b36e676e839d859cb6b309fc0 Mon Sep 17 00:00:00 2001 From: Craig Thacker Date: Fri, 23 Feb 2024 22:51:32 +0000 Subject: [PATCH] Update --- containers/windows-servercore2022/start.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/containers/windows-servercore2022/start.ps1 b/containers/windows-servercore2022/start.ps1 index 1edc500..6f6a164 100644 --- a/containers/windows-servercore2022/start.ps1 +++ b/containers/windows-servercore2022/start.ps1 @@ -63,6 +63,7 @@ $wc.DownloadFile($packageUrl, $AgentPath) Expand-Archive -Path $AgentPath -DestinationPath "C:\agent" $configCmdPath = Join-Path -Path "C:\agent" -ChildPath "config.cmd" +$runCmdPath = Join-Path -Path "C:\agent" -ChildPath "run.cmd" try { @@ -93,7 +94,7 @@ try Print-Header "4. Running Azure Pipelines agent..." - .\run.cmd + pwsh -Command $runCmdPath } finally {