From c3be8ea01a98928e1cdb734cb5141dd7523a3303 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 2 Jan 2021 12:41:43 +0300 Subject: refactoring --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'action.yml') diff --git a/action.yml b/action.yml index 7031bf9..a1c16bf 100644 --- a/action.yml +++ b/action.yml @@ -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 { -- cgit v1.2.3