From 7b785e3e2c83471b6b14f6f9da58bc71bec70a9d Mon Sep 17 00:00:00 2001 From: Timothy Bruce Date: Thu, 3 Sep 2026 02:45:04 -0400 Subject: [PATCH] Fix Tar distribution smoke on PowerShell --- packaging/VerifyTarDistribution.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/VerifyTarDistribution.ps1 b/packaging/VerifyTarDistribution.ps1 index fa2a2c8..0af6f06 100644 --- a/packaging/VerifyTarDistribution.ps1 +++ b/packaging/VerifyTarDistribution.ps1 @@ -25,10 +25,10 @@ $packageDirectory = Join-Path $validationRoot 'packages' $toolPath = Join-Path $validationRoot 'tool' $nugetConfigPath = Join-Path $validationRoot 'NuGet.Config' $outputDirectory = Join-Path $repositoryRoot "bin/$Configuration/$targetFramework" -$isWindows = [System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform( +$isWindowsPlatform = [System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform( [System.Runtime.InteropServices.OSPlatform]::Windows ) -$executableName = if ($isWindows) { 'tar.exe' } else { 'tar' } +$executableName = if ($isWindowsPlatform) { 'tar.exe' } else { 'tar' } $standaloneExecutable = Join-Path $outputDirectory $executableName if (-not (Test-Path -LiteralPath $standaloneExecutable -PathType Leaf)) { throw "Expected standalone executable '$standaloneExecutable'."