refactoring

This commit is contained in:
Egor Tensin 2021-01-02 12:41:43 +03:00
parent 8bc0daaefe
commit c3be8ea01a

View file

@ -58,10 +58,10 @@ runs:
[Parameter(Mandatory=$true)]
[string] $Path
)
$Path = realpath.exe --no-symlinks -- $Path
$dirname = dirname.exe -- $Path
$realpath = realpath.exe --no-symlinks -- $Path
$dirname = dirname.exe -- $realpath
$dirname = cygpath.exe -wa $dirname
Join-Path $dirname (Split-Path $Path -Leaf)
Join-Path $dirname (Split-Path $realpath -Leaf)
}
function Fix-CygwinLink {