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 {