Detect malformed paths by their beginning

This commit is contained in:
Manuel Thalmann 2024-09-28 16:13:43 +02:00
parent 3022ee9f41
commit 26592d589c

View file

@ -186,7 +186,7 @@ function ConvertTo-LinuxPath {
$result = Receive-Job -Wait $job; $result = Receive-Job -Wait $job;
if ((Split-Path -Leaf $Path) -ne (Split-Path -Leaf $result)) { if (-not ($result.StartsWith("/"))) {
Write-Error "The result of the path conversion of ``$Path`` was unexpected: ``$result``"; Write-Error "The result of the path conversion of ``$Path`` was unexpected: ``$result``";
continue; continue;
} }