From 34015ef27c59189d3c1191440c245188dc90741d Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Sat, 18 Apr 2015 15:16:15 -0400 Subject: [PATCH] make sudo rule work with pacman --- thefuck/rules/sudo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py index 4fa1012..b1566cf 100644 --- a/thefuck/rules/sudo.py +++ b/thefuck/rules/sudo.py @@ -1,6 +1,7 @@ def match(command, settings): return ('permission denied' in command.stderr.lower() or 'EACCES' in command.stderr + or 'error: you cannot perform this operation unless you are root.' in command.stderr or 'pkg: Insufficient privileges' in command.stderr)