From 2ce1c6bf90b5c1718298aa501d13a15fe4e60b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Sun, 24 Jan 2016 14:38:13 +0100 Subject: [PATCH] new pattern in sudo rule `pacman-key --refresh-keys` outputs the following when not run as root ``` ==> ERROR: pacman-key needs to be run as root for this operation. ``` --- thefuck/rules/sudo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py index 3211acf..7333a27 100644 --- a/thefuck/rules/sudo.py +++ b/thefuck/rules/sudo.py @@ -14,6 +14,7 @@ patterns = ['permission denied', 'must be root', 'need to be root', 'need root', + 'needs to be run as root', 'only root can ', 'You don\'t have access to the history DB.', 'authentication is required',