From ceeccf1cd7de156ae48ce5aa7f01366015fa6de9 Mon Sep 17 00:00:00 2001 From: SpyCheese Date: Sun, 19 Apr 2015 10:21:46 +0500 Subject: [PATCH] Update rm_root.py Okay, there was an incorrect match function. --- thefuck/rules/rm_root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/rm_root.py b/thefuck/rules/rm_root.py index b97eda22..853ce847 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)