IMPORTANT: Fix for shell built-in commands - this will need to be improved down the line

This commit is contained in:
Zvonimir Sabljic
2023-09-02 17:34:05 +02:00
parent f8f7006e68
commit c4a5bbf1f2

View File

@@ -82,6 +82,12 @@ def execute_command(project, command, timeout=None, force=False):
'If yes, just press ENTER'
)
# TODO when a shell built-in commands (like cd or source) is executed, the output is not captured properly - this will need to be changed at some point
if "cd " in command or "source " in command:
command = "bash -c '" + command + "'"
project.command_runs_count += 1
command_run = get_command_run_from_hash_id(project, command)
if command_run is not None and project.skip_steps: