Skip to content

Commit f8c4bfb

Browse files
authored
load-task: quote the command passed to echo (#726)
1 parent 0322516 commit f8c4bfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/taskgraph/docker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ def load_task(task_id, remove=True, user=None):
350350
dedent(
351351
f"""
352352
function exec-task() {{
353-
echo "Starting task: {task_command}";
354-
pushd {task_cwd};
355-
{task_command};
353+
echo Starting task: {shlex.quote(task_command)}
354+
pushd {task_cwd}
355+
{task_command}
356356
popd
357357
}}
358358
"""

0 commit comments

Comments
 (0)