mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 14:44:05 +00:00
added support for FreeBSD/PCBSD 'pkg' to sudo rule
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
def match(command, settings):
|
def match(command, settings):
|
||||||
return ('permission denied' in command.stderr.lower()
|
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):
|
def get_new_command(command, settings):
|
||||||
|
|||||||
Reference in New Issue
Block a user