Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
craigthackerx committed Feb 23, 2024
1 parent 0c8ba25 commit 201d7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions containers/windows-servercore2022/start.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $packageUrl = $package[0].Value.downloadUrl
Write-Host $packageUrl

Print-Header "2. Downloading and installing Azure Pipelines agent..."
$CurrentWd = $(Get-Location).Path
$CurrentWd = $( Get-Location ).Path
$AgentPath = Join-Path -Path $CurrentWd -ChildPath "agent.zip"
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($packageUrl, $AgentPath)
Expand Down Expand Up @@ -106,7 +106,7 @@ finally
{
Print-Header "Cleanup. Removing Azure Pipelines agent..."

.\config.cmd remove --unattended `
pwsh -Command $configCmdPath remove --unattended `
--auth PAT `
--token "$( Get-Content ${Env:AZP_TOKEN_FILE} )"
}

0 comments on commit 201d7f6

Please sign in to comment.