From d0c8e3458b95bb9859a2ec27f4371ed9e32dcca5 Mon Sep 17 00:00:00 2001 From: windingwind Date: Sun, 16 Apr 2023 10:15:21 +0800 Subject: [PATCH] fix: text template bug --- src/modules/template/api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/template/api.ts b/src/modules/template/api.ts index a32c06a..b8875f7 100644 --- a/src/modules/template/api.ts +++ b/src/modules/template/api.ts @@ -20,7 +20,10 @@ async function runTemplate( } ): Promise { ztoolkit.log(`runTemplate: ${key}`); - argString += ", _env"; + if (argList.length > 0) { + argString += ", "; + } + argString += "_env"; argList.push({ dryRun: options.dryRun, });