From aaa66b62687455d133615f340d8bacf87ba635f2 Mon Sep 17 00:00:00 2001 From: Martin Carton Date: Fri, 24 Jul 2015 16:33:53 +0200 Subject: [PATCH] Make a `sudo` pattern more general ``` % mount -o uid=martin /dev/sdc1 mnt mount: only root can use "--options" option ``` --- thefuck/rules/sudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py index 97b7a5e0..1f7cea53 100644 --- a/thefuck/rules/sudo.py +++ b/thefuck/rules/sudo.py @@ -13,7 +13,7 @@ patterns = ['permission denied', 'must be root', 'need to be root', 'need root', - 'only root can do that', + 'only root can ', 'You don\'t have access to the history DB.', 'authentication is required']