Skip to content

Commit 4ff40af

Browse files
committed
reverted code change
1 parent 652bb16 commit 4ff40af

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

  • wfcommons/wfbench/translator/templates/cwl_templates

wfcommons/wfbench/translator/templates/cwl_templates/shell.cwl

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,23 @@ requirements:
66
stdout: $(inputs.step_name + ".out")
77
stderr: $(inputs.step_name + ".err")
88

9+
arguments:
10+
- position: 1
11+
valueFrom: >
12+
${
13+
var cmd = inputs.command;
14+
if (inputs.input_files) {
15+
for (var i = 0; i < inputs.input_files.length; i++) {
16+
cmd = cmd.replace(new RegExp(inputs.input_files[i].basename, 'g'), inputs.input_files[i].path);
17+
}
18+
}
19+
return cmd;
20+
}
21+
shellQuote: false
22+
923
inputs:
1024
command:
1125
type: string
12-
inputBinding:
13-
position: 1
14-
shellQuote: false
1526
input_files:
1627
type: File[]?
1728
output_filenames:

0 commit comments

Comments
 (0)