Skip to content

Commit

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

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 f89ed9d + 25d95ec commit 9eb6d15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ 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}
$dist = -split "$_"
Expand Down

0 comments on commit 9eb6d15

Please sign in to comment.