mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
#1308: Add updatedb (mlocate) pattern to sudo rule
* added updatedb(mlocate) to sudo rules * Add test Co-authored-by: phk <phk@terminal21.de> Co-authored-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
This commit is contained in:
parent
16eb823066
commit
06cb50b1e3
@ -12,6 +12,7 @@ from thefuck.types import Command
|
|||||||
'need root',
|
'need root',
|
||||||
'shutdown: NOT super-user',
|
'shutdown: NOT super-user',
|
||||||
'Error: This command has to be run with superuser privileges (under the root user on most systems).',
|
'Error: This command has to be run with superuser privileges (under the root user on most systems).',
|
||||||
|
'updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db',
|
||||||
'must be root',
|
'must be root',
|
||||||
'You don\'t have access to the history DB.',
|
'You don\'t have access to the history DB.',
|
||||||
"error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'"])
|
"error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'"])
|
||||||
|
@ -24,7 +24,8 @@ patterns = ['permission denied',
|
|||||||
'you don\'t have write permissions',
|
'you don\'t have write permissions',
|
||||||
'use `sudo`',
|
'use `sudo`',
|
||||||
'sudorequirederror',
|
'sudorequirederror',
|
||||||
'error: insufficient privileges']
|
'error: insufficient privileges',
|
||||||
|
'updatedb: can not open a temporary file']
|
||||||
|
|
||||||
|
|
||||||
def match(command):
|
def match(command):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user