Skip to content
Snippets Groups Projects
Unverified Commit 57f7b8a8 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #5181 from reitermarkus/upgrade-login-items

cask: Don’t remove login items on upgrade.
parents 98754614 e7b1feef
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,9 @@ module Cask
end
end
def uninstall_login_item(*login_items, command: nil, **_)
def uninstall_login_item(*login_items, command: nil, upgrade: false, **_)
return if upgrade
login_items.each do |name|
ohai "Removing login item #{name}"
command.run!(
......
......@@ -424,7 +424,7 @@ module Cask
next unless artifact.respond_to?(:uninstall_phase)
odebug "Un-installing artifact of class #{artifact.class}"
artifact.uninstall_phase(command: @command, verbose: verbose?, skip: clear, force: force?)
artifact.uninstall_phase(command: @command, verbose: verbose?, skip: clear, force: force?, upgrade: upgrade?)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment