Skip to content

Commit

Permalink
shlex quote the working directory
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
rhpvorderman and nsoranzo authored Aug 7, 2024
1 parent 639fd54 commit a66b09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/deps/singularity_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def build_singularity_run_command(
# the mounting behavior.
command_parts.append("--contain")
if working_directory:
command_parts.extend(["--pwd", working_directory])
command_parts.extend(["--pwd", shlex.quote(working_directory)])
if cleanenv:
command_parts.append("--cleanenv")
if ipc:
Expand Down

0 comments on commit a66b09c

Please sign in to comment.