Skip to content

Commit

Permalink
quote singularity env parameters
Browse files Browse the repository at this point in the history
destination parameters that contain spaces, e.g.

```
<param id="singularity_env__JAVA_OPTIONS">-Xmx61g -Xms256m</param>
```

need quoting.
  • Loading branch information
bernt-matthias committed Nov 20, 2023
1 parent 74ef0d8 commit a0f0b83
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 @@ -81,7 +81,7 @@ def build_singularity_run_command(
for key, value in env:
if key == "HOME":
home = value
command_parts.extend([f"SINGULARITYENV_{key}={value}"])
command_parts.extend([f'SINGULARITYENV_{key}="{value}"'])
command_parts += _singularity_prefix(
singularity_cmd=singularity_cmd,
sudo=sudo,
Expand Down

0 comments on commit a0f0b83

Please sign in to comment.