refactoring
This commit is contained in:
parent
8bc0daaefe
commit
c3be8ea01a
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue