Remove sudo
This commit is contained in:
parent
57184f0a5c
commit
9f4b6faf28
@ -440,8 +440,6 @@ def run_script_response(self, dialog, task, script, language_name):
|
|||||||
script = ';\n'.join(script)
|
script = ';\n'.join(script)
|
||||||
|
|
||||||
script += '; echo "\n🦙 {}"'.format(_('Script exited'))
|
script += '; echo "\n🦙 {}"'.format(_('Script exited'))
|
||||||
if language_name == 'bash':
|
|
||||||
script = re.sub(r'(?m)^\s*sudo', 'pkexec', script)
|
|
||||||
if shutil.which('flatpak-spawn') and language_name == 'bash':
|
if shutil.which('flatpak-spawn') and language_name == 'bash':
|
||||||
sandbox = True
|
sandbox = True
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user