From 0a903fc47396cd6357ba8eb6a6595e2cc7c3600e Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 5 Oct 2020 13:51:21 +0300 Subject: [PATCH] Brew --greedy and --formula are mutual exclusive (fix #535) (#537) --- src/steps/os/unix.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index 9cfec4ae..2fa9458f 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -56,8 +56,7 @@ pub fn run_brew(ctx: &ExecutionContext) -> Result<()> { if cask_upgrade_exists { brew_args.push("--formula") - } - if ctx.config().brew_cask_greedy() { + } else if ctx.config().brew_cask_greedy() { brew_args.push("--greedy"); }