Fix broken scripts

This commit is contained in:
Manuel Thalmann 2024-08-10 01:50:52 +02:00
parent 89d43c1599
commit 94d6ffe6f9
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ $null = New-Module {
if (-not (& { $null = wsl -l; $?; })) { if (-not (& { $null = wsl -l; $?; })) {
$wslRoot = Split-Path -Parent $wslLocation; $wslRoot = Split-Path -Parent $wslLocation;
if (-not (Test-Path -PathType $wslRoot)) { if (-not (Test-Path $wslRoot)) {
$null = New-Item -ItemType Directory $wslRoot; $null = New-Item -ItemType Directory $wslRoot;
} }

View file

@ -77,7 +77,7 @@ $null = New-Module {
[switch] $System, [switch] $System,
[Parameter(ParameterSetName="User",Mandatory)] [Parameter(ParameterSetName="User",Mandatory)]
[switch] $User, [switch] $User,
[Parameter(Mandatory)] [Parameter(ParameterSetName="User")]
[RegistryKey] $UserKey [RegistryKey] $UserKey
) )