Fix broken scripts
This commit is contained in:
parent
89d43c1599
commit
94d6ffe6f9
|
@ -101,7 +101,7 @@ $null = New-Module {
|
|||
if (-not (& { $null = wsl -l; $?; })) {
|
||||
$wslRoot = Split-Path -Parent $wslLocation;
|
||||
|
||||
if (-not (Test-Path -PathType $wslRoot)) {
|
||||
if (-not (Test-Path $wslRoot)) {
|
||||
$null = New-Item -ItemType Directory $wslRoot;
|
||||
}
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ $null = New-Module {
|
|||
[switch] $System,
|
||||
[Parameter(ParameterSetName="User",Mandatory)]
|
||||
[switch] $User,
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(ParameterSetName="User")]
|
||||
[RegistryKey] $UserKey
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue