mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-08 04:44:00 +01:00
Update rm_root.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
def match(command, settings):
|
def match(command, settings):
|
||||||
return ('rm' in command.script
|
return ('/' in command.script
|
||||||
and '--help' not in command.script
|
and '--no-preserve-root' not in command.script
|
||||||
and '--no-preserve-root' in command.stderr)
|
and '--no-preserve-root' in command.stderr)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user