Skip to content

Commit

Permalink
Merge pull request #142 from szymonos/dev
Browse files Browse the repository at this point in the history
Merge dev to main
  • Loading branch information
szymonos authored Nov 16, 2023
2 parents 9f581ce + be64cd8 commit 066a271
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion wsl/wsl_certs_add.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ param (
[string]$Distro,

[ValidateNotNullOrEmpty()]
[string[]]$Uris = @('github.com', 'www.powershellgallery.com')
[string[]]$Uris = @('www.google.com', 'www.powershellgallery.com')
)

begin {
Expand Down
7 changes: 0 additions & 7 deletions wsl/wsl_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ begin {
}
}
# *perform initial distro setup
# disable appending Windows path inside distro to fix mounting issues
$lxss = Get-WslDistro -FromRegistry | Where-Object Name -EQ $Distro
# enable automount in wsl.conf
$param = @{
Expand All @@ -217,12 +216,6 @@ begin {
}
}
Set-WslConf @param
if ($lxss -and $lxss.Flags -notin @(5, 13)) {
$flag = $lxss.Version -eq 1 ? 5 : 13
Set-ItemProperty -Path $lxss.PSPath -Name 'Flags' -Value $flag
Write-Host "`nrestarting WSL to apply changes..." -ForegroundColor Cyan
wsl.exe --shutdown $Distro
}
} elseif ($lxss) {
Write-Host "Found $($lxss.Count) distro$($lxss.Count -eq 1 ? '' : 's') to update." -ForegroundColor White
$lxss.Name.ForEach({ Write-Host "- $_" })
Expand Down

0 comments on commit 066a271

Please sign in to comment.