Imagine knowing how your own tools work.
This commit is contained in:
parent
11bed96f9d
commit
338b200246
1 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,9 @@ module.exports = function(env) {
|
|||
|
||||
return {
|
||||
process: async (task, vars) => {
|
||||
let { stdout, stderr } = await exec(strtr(env.twig?.cmdFormat ?? ':command :path', {
|
||||
':command': env.twig?.cmdPathFull ?? pathJoin(env.root, env.twig?.cmdPath ?? 'tools/render-tpl'),
|
||||
':path': task.source,
|
||||
let { stdout, stderr } = await exec(strtr(env.twig?.cmdFormat ?? '{command} {path}', {
|
||||
'command': env.twig?.cmdPathFull ?? pathJoin(env.root, env.twig?.cmdPath ?? 'tools/render-tpl'),
|
||||
'path': task.source,
|
||||
}));
|
||||
|
||||
if(stdout.trim() === '')
|
||||
|
|
Loading…
Reference in a new issue