1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 14:48:49 +00:00

Fix whitespace

This commit is contained in:
Inga Feick 2019-04-08 09:55:46 +02:00
parent 45825e48a5
commit 7a25268950

View File

@ -11,5 +11,5 @@ def match(command):
def get_new_command(command):
if "--user" not in command.script: # add --user (attempt 1)
return command.script.replace(" install ", " install --user ")
else: # since --user didn't fix things, let's try sudo (attempt 2)
return 'sudo {}'.format(command.script.replace(" --user", ""))
else: # since --user didn't fix things, let's try sudo (attempt 2)
return 'sudo {}'.format(command.script.replace(" --user", ""))