From d11ca52ec91b7d40b7c81bb779df61e312e13b9e Mon Sep 17 00:00:00 2001 From: Matthew Fallshaw Date: Thu, 12 Oct 2017 13:43:28 -0700 Subject: [PATCH] Bugfix: brew_update_formula.py Sample command output is: Error: This command updates brew itself, and does not take formula names. Use 'brew upgrade thefuck' instead. This will never match the previous `"Use 'brew upgrade '" in command.output` test. --- thefuck/rules/brew_update_formula.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thefuck/rules/brew_update_formula.py b/thefuck/rules/brew_update_formula.py index 2100c23..6b4f798 100644 --- a/thefuck/rules/brew_update_formula.py +++ b/thefuck/rules/brew_update_formula.py @@ -5,7 +5,8 @@ from thefuck.utils import for_app def match(command): return ('update' in command.script and "Error: This command updates brew itself" in command.output - and "Use 'brew upgrade '" in command.output) + and "Use 'brew upgrade" in command.output + and "instead" in command.output) def get_new_command(command):