mirror of
https://github.com/nvbn/thefuck.git
synced 2026-02-08 00:32:18 +00:00
Update rm_root.py
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user