mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-18 16:50:42 +01:00
sry edit is false
This commit is contained in:
parent
8ff2336293
commit
46439e0ee4
@ -30,9 +30,6 @@ def _get_operations():
|
|||||||
|
|
||||||
@sudo_support
|
@sudo_support
|
||||||
def get_new_command(command):
|
def get_new_command(command):
|
||||||
if misspelled_command == 'uninstall':
|
|
||||||
return [command.script.replace('uninstall','remove')
|
|
||||||
else:
|
|
||||||
misspelled_command = regex.findall(command.output)[0]
|
misspelled_command = regex.findall(command.output)[0]
|
||||||
return replace_command(command, misspelled_command, _get_operations())
|
return replace_command(command, misspelled_command, _get_operations())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user