Skip to content

Commit cb142b6

Browse files
author
Alan Christie
committed
Fix nextflow.config
Commands now run using the shell
1 parent 4a8b4aa commit cb142b6

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/jote/compose.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@
3636
"""
3737

3838
_NF_CONFIG_CONTENT: str = """
39-
docker {
40-
enabled = true
41-
runOptions = '-u $(id -u):$(id -g)'
42-
}
39+
docker.enabled = true
40+
docker.runOptions = '-u $(id -u):$(id -g)'
4341
"""
4442

4543

src/jote/jote.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,11 @@ def _run_nextflow(command: str,
329329
os.chdir(project_path)
330330

331331
try:
332-
test = subprocess.run(command.split(),
332+
test = subprocess.run(command,
333+
shell=True,
334+
check=False,
333335
capture_output=True,
334-
timeout=timeout_minutes * 60,
335-
check=False)
336+
timeout=timeout_minutes * 60)
336337
finally:
337338
os.chdir(cwd)
338339

0 commit comments

Comments
 (0)