Skip to content

Commit da85a88

Browse files
authored
Fix installation_command with single quotes crashing job (#1482)
Signed-off-by: Nikolai Ludwig <nliudvig@nvidia.com>
1 parent d3d3acc commit da85a88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • nemo_skills/pipeline/utils

nemo_skills/pipeline/utils/exp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def install_packages_wrap(cmd, installation_command: str | None = None):
435435
f"if ! [ -f {lock_file} ]; then "
436436
f"echo 'Starting package installation with UUID: {job_uuid}'; "
437437
f"touch {lock_file}; "
438-
f"echo 'Installing packages: {installation_command}'; "
438+
f"echo {shlex.quote('Installing packages: ' + installation_command)}; "
439439
f"if {installation_command}; then "
440440
f"echo 'Package installation completed successfully'; "
441441
f"echo 'done' > {lock_file}; "

0 commit comments

Comments
 (0)