1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-13 22:28:33 +00:00

Update rm_root.py

Okay, there was an incorrect match function.
This commit is contained in:
SpyCheese 2015-04-19 10:21:46 +05:00
parent f113bae59d
commit ceeccf1cd7

View File

@ -1,5 +1,5 @@
def match(command, settings):
return ('/' in command.script
return ('/' in command.script.split()
and '--no-preserve-root' not in command.script
and '--no-preserve-root' in command.stderr)