Compare commits

..

No commits in common. "d4357d0925ff0276c6b7d0f6c9262ca17c401b62" and "1f498de8fb950eb32775b47fa45ac73d018d74b8" have entirely different histories.

View file

@ -30,9 +30,6 @@ $null = New-Module {
[string] $Path
)
$completed = $false;
while (-not $completed) {
$job = Start-Job {
$env:Value = Resolve-Path $Using:Path;
$env:WSLENV = "Value/p";
@ -42,18 +39,12 @@ $null = New-Module {
$result = Receive-Job -Wait $job;
if ((Split-Path -Leaf $Path) -ne (Split-Path -Leaf $result)) {
Write-Error "The result of the path conversion of ``$Path`` was unexpected: ``$result``";
continue;
Write-Error "The result of the path conversion of ``$Path`` was unexpacted: ``$result``";
}
if ($job.State -ne ([System.Management.Automation.JobState]::Completed)) {
Write-Error "An error occurred while converting ``$Path`` to a Linux path.`nOutput: ``$result``";
continue;
}
$completed = $true;
}
$result;