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"); }