mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +00:00
Update rm_root.py
This commit is contained in:
parent
2a79a5e413
commit
f113bae59d
@ -1,6 +1,6 @@
|
||||
def match(command, settings):
|
||||
return ('rm' in command.script
|
||||
and '--help' not in command.script
|
||||
return ('/' in command.script
|
||||
and '--no-preserve-root' not in command.script
|
||||
and '--no-preserve-root' in command.stderr)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user