From 338b200246b635dfcba7c95d60ff3ea2fbb8ee79 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 10 Jun 2024 03:03:24 +0000 Subject: [PATCH] Imagine knowing how your own tools work. --- src/handlers/twig.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handlers/twig.js b/src/handlers/twig.js index e491417..e9d44d0 100644 --- a/src/handlers/twig.js +++ b/src/handlers/twig.js @@ -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() === '')