mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-15 15:20:42 +01:00
Merge pull request #30 from vikstrous/master
make sudo rule work with pacman
This commit is contained in:
commit
652073aecd
@ -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 'error: you cannot perform this operation unless you are root.' in command.stderr
|
||||||
or 'pkg: Insufficient privileges' in command.stderr)
|
or 'pkg: Insufficient privileges' in command.stderr)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user