Fix broken scripts

This commit is contained in:
Manuel Thalmann 2024-08-10 01:50:52 +02:00
parent 3a45dfca73
commit aa4c392569
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,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
) )