9 lines
281 B
Python
9 lines
281 B
Python
def match(command, settings):
|
|
return ('permission denied' in command.stderr.lower()
|
|
or 'EACCES' in command.stderr
|
|
or 'pkg: Insufficient privileges' in command.stderr)
|
|
|
|
|
|
def get_new_command(command, settings):
|
|
return 'sudo {}'.format(command.script)
|