Skip to content

Commit b187738

Browse files
committed
quote exported variables
1 parent 4e10fca commit b187738

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/hpc_connect/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66

77
from . import config
8+
from .hookspec import hookimpl
89
from .launch import HPCLauncher
910
from .launch import factory as get_launcher
1011
from .submit import HPCProcess

src/hpc_connect/submit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def matches(name: str) -> bool: ...
5353
def supports_subscheduling(self) -> bool:
5454
return False
5555

56+
def setup(self, **kwargs: Any) -> None: ...
57+
5658
def get_from_config(self, key: str, default: Any = None) -> Any:
5759
if value := self.config.get(f"submit:{self.name}:{key}"):
5860
return value

src/hpc_connect/templates/hpcc-submit.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{% if val is none %}
1212
unset {{ var }}
1313
{% else %}
14-
export {{ var }}={{ val }}
14+
export {{ var }}="{{ val }}"
1515
{% endif %}
1616
{% endfor %}
1717
{% endif %}

0 commit comments

Comments
 (0)