Skip to content

Commit 9e70dca

Browse files
authored
fix(get-manfest): Add back '$appPath' (#4981)
1 parent 64364b4 commit 9e70dca

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
### Code Refactoring
2727

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

3030
### Documentation
3131

lib/manifest.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ function Get-Manifest($app) {
4343
}
4444
if (!$manifest) {
4545
# couldn't find app in buckets: check if it's a local path
46-
if (!$app.EndsWith('.json')) {
47-
$app += '.json'
46+
$appPath = $app
47+
if (!$appPath.EndsWith('.json')) {
48+
$appPath += '.json'
4849
}
49-
if (Test-Path $app) {
50-
$url = Convert-Path $app
50+
if (Test-Path $appPath) {
51+
$url = Convert-Path $appPath
5152
$app = appname_from_url $url
5253
$manifest = url_manifest $url
5354
}

0 commit comments

Comments
 (0)