fix(scoop-shim): Check literal path in Get-ShimPath (#5680)

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
This commit is contained in:
L. Yeung
2023-10-10 19:20:53 +08:00
committed by GitHub
parent 2847e0a37c
commit 14b38b4092
2 changed files with 2 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ function Get-ShimInfo($ShimPath) {
function Get-ShimPath($ShimName, $Global) {
'.shim', '.ps1' | ForEach-Object {
$shimPath = Join-Path (shimdir $Global) "$ShimName$_"
if (Test-Path $shimPath) {
if (Test-Path -LiteralPath $shimPath) {
return $shimPath
}
}