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 {
|
return {
|
||||||
process: async (task, vars) => {
|
process: async (task, vars) => {
|
||||||
let { stdout, stderr } = await exec(strtr(env.twig?.cmdFormat ?? ':command :path', {
|
let { stdout, stderr } = await exec(strtr(env.twig?.cmdFormat ?? '{command} {path}', {
|
||||||
':command': env.twig?.cmdPathFull ?? pathJoin(env.root, env.twig?.cmdPath ?? 'tools/render-tpl'),
|
'command': env.twig?.cmdPathFull ?? pathJoin(env.root, env.twig?.cmdPath ?? 'tools/render-tpl'),
|
||||||
':path': task.source,
|
'path': task.source,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if(stdout.trim() === '')
|
if(stdout.trim() === '')
|
||||||
|
|
Loading…
Reference in a new issue