Skip to content

Commit 652bb16

Browse files
committed
removed redundant code
1 parent c0a3871 commit 652bb16

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

  • wfcommons/wfbench/translator/templates/cwl_templates

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

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,12 @@ 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-
239
inputs:
2410
command:
2511
type: string
12+
inputBinding:
13+
position: 1
14+
shellQuote: false
2615
input_files:
2716
type: File[]?
2817
output_filenames:

0 commit comments

Comments
 (0)