From f113bae59d97ab1cd90857680e8c6e9320b96327 Mon Sep 17 00:00:00 2001 From: SpyCheese Date: Sun, 19 Apr 2015 09:12:19 +0500 Subject: [PATCH] Update rm_root.py --- thefuck/rules/rm_root.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thefuck/rules/rm_root.py b/thefuck/rules/rm_root.py index 95d9fbdd..b97eda22 100644 --- a/thefuck/rules/rm_root.py +++ b/thefuck/rules/rm_root.py @@ -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)