diff --git a/thefuck/rules/rm_root.py b/thefuck/rules/rm_root.py index b97eda2..853ce84 100644 --- a/thefuck/rules/rm_root.py +++ b/thefuck/rules/rm_root.py @@ -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)