Skip to content

Commit

Permalink
Fix aliased Scoop (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Apr 19, 2024
1 parent f0fc46a commit b936554
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/Scoop.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,16 @@ function Find-ScoopApp {
)

begin {
$bucketPath = Get-Command -Name Scoop |
Select-Object -ExpandProperty Path |
Split-Path |
Split-Path |
Join-Path -ChildPath buckets
try {
$bucketPath = Get-Command -Name Scoop -CommandType ExternalScript -ErrorAction Stop |
Select-Object -ExpandProperty Path |
Split-Path |
Split-Path |
Join-Path -ChildPath buckets
}
catch {
throw $_
}
}

process {
Expand Down

0 comments on commit b936554

Please sign in to comment.