Run brew cask upgrade (fix #103)

This commit is contained in:
Roey Darwish Dror
2018-12-26 23:12:20 +02:00
parent ded8041b1d
commit 23ae157c72

View File

@@ -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()?;
}