From 537d8c8cc5c8f3dee8de9e6597fe0dfbbbe45741 Mon Sep 17 00:00:00 2001 From: Ben Hillis Date: Mon, 8 Dec 2025 08:14:49 -0800 Subject: [PATCH] PR suggestions --- tools/test/test-setup.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test/test-setup.ps1 b/tools/test/test-setup.ps1 index eb37fe1..2ae9a9f 100644 --- a/tools/test/test-setup.ps1 +++ b/tools/test/test-setup.ps1 @@ -69,6 +69,7 @@ if ($Package) { Write-Host "Installing package: $Package" try { + $installed = $false if ($AllowUnsigned) { # Try to add with -AllowUnsigned first (supported in newer PowerShell) @@ -89,7 +90,7 @@ if ($Package) { $certPath = Join-Path $env:TEMP "wsl-package-cert.cer" $cert | Export-Certificate -FilePath $certPath | Out-Null try { - Import-Certificate -FilePath $certPath -CertStoreLocation Cert:\LocalMachine\Root | Out-Null + Import-Certificate -FilePath $certPath -CertStoreLocation Cert:\CurrentUser\Root | Out-Null } finally { Remove-Item -Path $certPath -ErrorAction SilentlyContinue