aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-02 12:41:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-02 12:41:43 +0300
commitc3be8ea01a98928e1cdb734cb5141dd7523a3303 (patch)
tree7700d8cb394b55ed912d7dee5b9d5c773366935f
parentrefactoring (diff)
downloadsetup-clang-c3be8ea01a98928e1cdb734cb5141dd7523a3303.tar.gz
setup-clang-c3be8ea01a98928e1cdb734cb5141dd7523a3303.zip
refactoring
-rw-r--r--action.yml6
1 files changed, 3 insertions, 3 deletions
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 {