mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +00: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:
parent
e658f35bd9
commit
d11ca52ec9
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user