diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 45a8eb5c..a0f526fd 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -78,9 +78,13 @@ $null = New-Module { Restart-Intermediate; return; } - - if (-not (wsl --shell-type login type -t nix)) { + + if (-not (& { $null = wsl -l; $?; })) { ubuntu install --root; + continue; + } + + if (-not (wsl --shell-type login type -t nix)) { wsl -- sh `<`(curl -L https://nixos.org/nix/install`) --daemon --yes; wsl --shutdown; continue;