From fa67e12fa343818b2dccf2bcfacb95620566f30a 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 b015ebf0..7d63a4bf 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -68,7 +68,7 @@ function Start-InstallationLoop { wsl --shutdown; } - if (& { wsl command -q nix; $?; }) { + if (wsl --shell-type login type -t nix) { Set-Stage ([SetupStage]::Configure); } } else {