From 14f0817a9920196019990eb5f079d23d43059494 Mon Sep 17 00:00:00 2001 From: tpltnt Date: Sat, 18 Apr 2015 08:45:48 +0200 Subject: [PATCH] added support for FreeBSD/PCBSD 'pkg' to sudo rule --- thefuck/rules/sudo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py index 4753726..4fa1012 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 'EACCES' in command.stderr + or 'pkg: Insufficient privileges' in command.stderr) def get_new_command(command, settings):