mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-12 07:59:01 +00:00
Revert "sry edit is false"
This reverts commit 46439e0ee421f05af1a93b93f9a0c118119bf865.
This commit is contained in:
parent
1683f45e94
commit
66c16038bb
@ -30,6 +30,9 @@ 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