Detect malformed paths by their beginning
This commit is contained in:
parent
3022ee9f41
commit
26592d589c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue