Prevent unnecessary errors during WSL execution
This commit is contained in:
parent
31e3c51f97
commit
18abc9e499
1 changed files with 24 additions and 21 deletions
|
@ -30,6 +30,8 @@ $null = New-Module {
|
||||||
[string] $Path
|
[string] $Path
|
||||||
)
|
)
|
||||||
|
|
||||||
|
& {
|
||||||
|
$ErrorActionPreference = 'Continue';
|
||||||
$completed = $false;
|
$completed = $false;
|
||||||
|
|
||||||
while (-not $completed) {
|
while (-not $completed) {
|
||||||
|
@ -57,6 +59,7 @@ $null = New-Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
$result;
|
$result;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
<#
|
<#
|
||||||
|
|
Loading…
Reference in a new issue