From 23ae157c72c3a84ea84b4ee0c5cb07152b353351 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Wed, 26 Dec 2018 23:12:20 +0200 Subject: [PATCH] Run brew cask upgrade (fix #103) --- src/steps/os/unix.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index de4d34cb..57c23443 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -61,6 +61,11 @@ pub fn run_homebrew(cleanup: bool, dry_run: bool) -> Option<(&'static str, bool) let inner = || -> Result<(), Error> { Executor::new(&brew, dry_run).arg("update").spawn()?.wait()?.check()?; Executor::new(&brew, dry_run).arg("upgrade").spawn()?.wait()?.check()?; + Executor::new(&brew, dry_run) + .args(&["cask", "upgrade"]) + .spawn()? + .wait()? + .check()?; if cleanup { Executor::new(&brew, dry_run).arg("cleanup").spawn()?.wait()?.check()?; }