Skip to content
Permalink
Browse files
fix: quote workdir in job exec prefix to allow to spaces in the workd…
…ir (#1547)

* fix: quote workdir in job exec prefix to allow to spaces in the workdir

* docs
  • Loading branch information
johanneskoester committed Mar 31, 2022
1 parent 4f2258f commit c3a593e8f7fc8e0dccec4e025f4cd9743bd80bc3
Showing 1 changed file with 2 additions and 1 deletion.
@@ -979,7 +979,8 @@ def __init__(

def get_job_exec_prefix(self, job):
if self.assume_shared_fs:
return f"cd {self.workflow.workdir_init}"
# quoting the workdir since it may contain spaces
return f"cd {repr(self.workflow.workdir_init)}"
else:
return ""

0 comments on commit c3a593e

Please sign in to comment.