Change warning so that it only appears with bash scripts
This commit is contained in:
parent
f497f1c5dc
commit
efbfb1e82a
@ -441,7 +441,7 @@ 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 shutil.which('flatpak-spawn'):
|
if shutil.which('flatpak-spawn') and language_name == 'bash':
|
||||||
script = 'echo "🦙 {}\n";'.format(_('The script is contained inside Flatpak')) + script
|
script = 'echo "🦙 {}\n";'.format(_('The script is contained inside Flatpak')) + script
|
||||||
|
|
||||||
self.run_terminal(['bash', '-c', script])
|
self.run_terminal(['bash', '-c', script])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user