1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

Merge pull request #18 from tpltnt/pkg-rule

added support for FreeBSD/PCBSD 'pkg' to sudo rule
This commit is contained in:
Vladimir Iakovlev 2015-04-18 21:09:41 +02:00
commit ef7fe4685b

View File

@ -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):