1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

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 <formula>'" in command.output` test.
This commit is contained in:
Matthew Fallshaw 2017-10-12 13:43:28 -07:00 committed by GitHub
parent e658f35bd9
commit d11ca52ec9

View File

@ -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 <formula>'" in command.output)
and "Use 'brew upgrade" in command.output
and "instead" in command.output)
def get_new_command(command):