Skip to content

Commit

Permalink
fix(perf): Do not call scoop externally from inside the code (#5695)
Browse files Browse the repository at this point in the history
* fix: do not call `scoop` externally from inside the code

* update CHANGELOG.md

* update CHANGELOG.md
  • Loading branch information
hagaigold authored Oct 19, 2023
1 parent 6cdcc75 commit 7b35e19
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- **scoop-update:** Change error message to a better instruction ([#5677](https://github.com/ScoopInstaller/Scoop/issues/5677))
- **shim:** Check literal path in `Get-ShimPath` ([#5680](https://github.com/ScoopInstaller/Scoop/issues/5680))
- **shim:** Avoid unexpected output of `list` subcommand ([#5681](https://github.com/ScoopInstaller/Scoop/issues/5681))
- **scoop:** Do not call `scoop` externally from inside the code ([#5695](https://github.com/ScoopInstaller/Scoop/issues/5695))

### Performance Improvements

Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-create.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function choose_item($list, $query) {
}

if (!$url) {
scoop help create
& "$PSScriptRoot\scoop-help.ps1" create
} else {
create_manifest $url
}
Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-download.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if (is_scoop_outdated) {
if ($opt.u -or $opt.'no-update-scoop') {
warn "Scoop is out of date."
} else {
scoop update
& "$PSScriptRoot\scoop-update.ps1"
}
}

Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if (is_scoop_outdated) {
if ($opt.u -or $opt.'no-update-scoop') {
warn "Scoop is out of date."
} else {
scoop update
& "$PSScriptRoot\scoop-update.ps1"
}
}

Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-virustotal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if (is_scoop_outdated) {
if ($opt.u -or $opt.'no-update-scoop') {
warn 'Scoop is out of date.'
} else {
scoop update
& "$PSScriptRoot\scoop-update.ps1"
}
}

Expand Down

0 comments on commit 7b35e19

Please sign in to comment.