Skip to content

Commit 6e2939c

Browse files
committed
Change argument addition order
1 parent 1406050 commit 6e2939c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cwltool/singularity.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def create_runtime(
480480
any_path_okay = self.builder.get_requirement("DockerRequirement")[1] or False
481481
singularity_exec_command = "exec"
482482
if is_apptainer_1_1_or_newer() or is_version_3_10_or_newer():
483-
singularity_exec_command = "run --no-eval"
483+
singularity_exec_command = "run"
484484

485485
runtime = [
486486
"singularity",
@@ -490,6 +490,9 @@ def create_runtime(
490490
"--ipc",
491491
"--cleanenv",
492492
]
493+
if is_apptainer_1_1_or_newer() or is_version_3_10_or_newer():
494+
runtime.append("--no-eval")
495+
493496
if singularity_supports_userns():
494497
runtime.append("--userns")
495498
else:

0 commit comments

Comments
 (0)