Skip to content

Commit 26e6d05

Browse files
committed
Fix Install-XHarness - attempt 2
1 parent 44a190e commit 26e6d05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/device-test-utils.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
function Install-XHarness {
22
if (!(Get-Command xharness -ErrorAction SilentlyContinue))
33
{
4-
Push-Location (Test-Path env:CI ? $env:RUNNER_TEMP : $IsWindows ? $env:TMP : $IsMacos ? $env:TMPDIR : '/tmp')
4+
$CI = Test-Path env:CI
5+
Push-Location ($CI ? $env:RUNNER_TEMP : $IsWindows ? $env:TMP : $IsMacos ? $env:TMPDIR : '/tmp')
56
dotnet tool install Microsoft.DotNet.XHarness.CLI --global --version '10.0.0-prerelease.25466.1' `
67
--add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json
78
Pop-Location

0 commit comments

Comments
 (0)