Skip to content

Commit

Permalink
fix(get-manfest): Add back '$appPath' (#4981)
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven authored Jun 10, 2022
1 parent 64364b4 commit 9e70dca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

### Code Refactoring

- **manifest:** Rename 'Find-Manifest()' to 'Get-Manifest() ([#4966](https://github.com/ScoopInstaller/Scoop/issues/4966))
- **manifest:** Rename 'Find-Manifest()' to 'Get-Manifest() ([#4966](https://github.com/ScoopInstaller/Scoop/issues/4966), [#4981](https://github.com/ScoopInstaller/Scoop/issues/4981))

### Documentation

Expand Down
9 changes: 5 additions & 4 deletions lib/manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ function Get-Manifest($app) {
}
if (!$manifest) {
# couldn't find app in buckets: check if it's a local path
if (!$app.EndsWith('.json')) {
$app += '.json'
$appPath = $app
if (!$appPath.EndsWith('.json')) {
$appPath += '.json'
}
if (Test-Path $app) {
$url = Convert-Path $app
if (Test-Path $appPath) {
$url = Convert-Path $appPath
$app = appname_from_url $url
$manifest = url_manifest $url
}
Expand Down

0 comments on commit 9e70dca

Please sign in to comment.