Skip to content

Commit

Permalink
Fixed when no wsl clients exist and we get copyright exit wsl update …
Browse files Browse the repository at this point in the history
…instead of pasting out the output
  • Loading branch information
AndreasBrostrom committed Oct 3, 2024
1 parent f89ed9d commit 25d95ec
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 25d95ec

Please sign in to comment.