Skip to content

Commit

Permalink
Merge pull request #12 from AndreasBrostrom/If-no-clinets-exist-and-w…
Browse files Browse the repository at this point in the history
…e-get-copyright-exit-wsl

Propperly hopfully fixed when no wsl clients exist and we get copyright exit wsl update instead of pasting out the output
  • Loading branch information
AndreasBrostrom authored Oct 3, 2024
2 parents 9eb6d15 + f7e1ec1 commit dcbc7d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ function runWSLUpdate {
$i++
if ($i -lt 2) {return}
if ($_ -eq "") {return}
if ($_.contains("Copyright")) {return}
if ($_.contains("Distributions")) {return}
if ($_.contains("https://aka.ms/wslstore")) {return}
if ($_.contains("Copyright")) {break}
if ($_.contains("Distributions")) {break}
if ($_.contains("https://aka.ms/wslstore")) {break}
$dist = -split "$_"
$distName = $dist[0]
$DistrosList += $distName
Expand Down

0 comments on commit dcbc7d3

Please sign in to comment.