mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2025-10-30 06:07:56 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user