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,