Skip to content

Commit

Permalink
Merge pull request #1342 from Homebrew/vscode_uninstall_euid
Browse files Browse the repository at this point in the history
bundle/commands/cleanup: exchange UID if needed on VSCode uninstall.
  • Loading branch information
MikeMcQuaid authored Apr 9, 2024
2 parents 40ab9cf + 4b451ae commit 0376dd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bundle/commands/cleanup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ def run(global: false, file: nil, force: false, zap: false)

Kernel.system HOMEBREW_BREW_FILE, "untap", *taps if taps.any?

vscode_extensions.each do |extension|
Kernel.system "code", "--uninstall-extension", extension
Bundle.exchange_uid_if_needed! do
vscode_extensions.each do |extension|
Kernel.system "code", "--uninstall-extension", extension
end
end

cleanup = system_output_no_stderr(HOMEBREW_BREW_FILE, "cleanup")
Expand Down

0 comments on commit 0376dd6

Please sign in to comment.