in scripts/packergen.py [0:0]
def _sudo_shell(command):
return {
'type': 'shell',
'execute_command': (
'chmod +x {{ .Path }}; '
'sudo /bin/bash -eu -c \'{{ .Vars }} {{ .Path }}\''
),
'inline_shebang': '/bin/bash -eu',
'inline': _inline_format(command)
}