From be8f29591cdc949b576355b821acca4717b4d716 Mon Sep 17 00:00:00 2001 From: Gerhard Lazu Date: Mon, 6 Jul 2015 10:17:28 +0100 Subject: [PATCH] brew upgrade doesn't upgrade casks https://github.com/caskroom/homebrew-cask/issues/309 --- update | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/update b/update index a68fc82..288bee3 100755 --- a/update +++ b/update @@ -6,6 +6,7 @@ main() { os_x_software_update update_package_sources upgrade_installed_packages + upgrade_installed_casks . libconfig/homebrew_htop # update go pkgs update_vim_plugins @@ -24,12 +25,22 @@ upgrade_installed_packages() { brew upgrade --all } +upgrade_installed_casks() { + local cask + + brew cask list | while read -r cask + do + brew cask install "$cask" + done +} + update_vim_plugins() { vim +PluginUpdate +PluginClean! +qall } cleanup() { brew cleanup -s --force + brew cask cleanup } main