Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 c3a593e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snakemake/executors/__init__.py
Expand Up @@ -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 ""

Expand Down

0 comments on commit c3a593e

Please sign in to comment.