Skip to content

Commit 6cf7276

Browse files
authored
fvp template rework
make use of config.<node> as global references will be deprecated.
1 parent 473e3ce commit 6cf7276

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templates/FVP.adapter.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"shell": "<%= data.shell[process.platform] %>"
2525
},
2626
"args": [
27-
"<% if (conf_file) { %>",
28-
"-f", "<%= conf_file %>\n",
27+
"<% if (config['config-file']) { %>",
28+
"-f", "<%= config['config-file'] %>\n",
2929
"<% } %>",
30-
"<% if (Array.isArray(args) && args.length > 0) { %>",
31-
"<%= args.join('\\n') %>\n",
30+
"<% if (Array.isArray(config.args) && config.args.length > 0) { %>",
31+
"<%= config.args.join('\\n') %>\n",
3232
"<% } %>",
33-
"<% else if (typeof args === 'string' && args.trim().length > 0) { %>",
34-
"<%= args.trim().split(/\\s+/).join('\\n') %>\n",
33+
"<% else if (typeof config.args === 'string' && config.args.trim().length > 0) { %>",
34+
"<%= config.args.trim().split(/\\s+/).join('\\n') %>\n",
3535
"<% } %>",
3636
"<% const files = symbol_files.map(s => s.file) %>",
3737
"<% for (const file of files) { %>",

0 commit comments

Comments
 (0)