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:
parent
f113bae59d
commit
ceeccf1cd7
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user