From 466813fe3947e60504504a940efebd01f81621ec Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 1 Aug 2024 18:05:10 +0200 Subject: [PATCH] Fix `nix` installation check --- scripts/Windows/OS/Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 7576cf2e..35596781 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -69,7 +69,7 @@ function Start-InstallationLoop { wsl --shutdown; } - if (& { wsl command -q nix; $?; }) { + if (wsl --shell-type login type -t nix) { Set-Stage ([SetupStage]::Configure); } } else {