1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 12:06:04 +00:00

#1261: Add two more patterns to sudo rule (#1307)

* macos shutdown sudo fix

* Update tests/rules/test_sudo.py

* Update thefuck/rules/sudo.py

* Update tests/rules/test_sudo.py

* Update thefuck/rules/sudo.py

Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
This commit is contained in:
Oļegs Čapligins 2022-05-29 22:40:31 +03:00 committed by GitHub
parent d8ddf5a2be
commit 16eb823066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,8 @@ from thefuck.types import Command
'requested operation requires superuser privilege', 'requested operation requires superuser privilege',
'need to be root', 'need to be root',
'need root', 'need root',
'shutdown: NOT super-user',
'Error: This command has to be run with superuser privileges (under the root user on most systems).',
'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'"])

View File

@ -4,6 +4,8 @@ patterns = ['permission denied',
'you cannot perform this operation unless you are root', 'you cannot perform this operation unless you are root',
'non-root users cannot', 'non-root users cannot',
'operation not permitted', 'operation not permitted',
'not super-user',
'superuser privilege',
'root privilege', 'root privilege',
'this command has to be run under the root user.', 'this command has to be run under the root user.',
'this operation requires root.', 'this operation requires root.',