From a0f0b83c1d1a43a2130757d33f3566b3034a554a Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Mon, 20 Nov 2023 15:01:51 +0100 Subject: [PATCH] quote singularity env parameters destination parameters that contain spaces, e.g. ``` -Xmx61g -Xms256m ``` need quoting. --- lib/galaxy/tool_util/deps/singularity_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tool_util/deps/singularity_util.py b/lib/galaxy/tool_util/deps/singularity_util.py index 9c64898c8984..6d0044aa8cf1 100644 --- a/lib/galaxy/tool_util/deps/singularity_util.py +++ b/lib/galaxy/tool_util/deps/singularity_util.py @@ -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,