Skip to content
Snippets Groups Projects
Commit 0478c2fc authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

update-report: prune on cask migration. (#428)

Do this to ensure that any symlinks in the Homebrew prefix and/or in
Applications are removed to stop issues with stale symlinks causing
Casks from being installed correctly.
parent a97661a5
No related branches found
No related tags found
No related merge requests found
......@@ -255,6 +255,7 @@ class Reporter
if new_tap.installed? && (HOMEBREW_REPOSITORY/"Caskroom").directory?
ohai "#{name} has been moved to Homebrew Cask. Installing #{name}..."
system HOMEBREW_BREW_FILE, "uninstall", "--force", name
system HOMEBREW_BREW_FILE, "prune"
system HOMEBREW_BREW_FILE, "cask", "install", name
else
ohai "#{name} has been moved to Homebrew Cask.", <<-EOS.undent
......
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