From 17c5e0719e585f7ecd8ddcd27e17dc2bebb95902 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 10 Feb 2025 15:24:45 +0100 Subject: [PATCH] chore: naming consistency --- src/run.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/run.ts b/src/run.ts index eb9aadf..da83f1e 100644 --- a/src/run.ts +++ b/src/run.ts @@ -173,10 +173,10 @@ const printOutput = (res: ExecRes): void => { } } -async function runLint(lintPath: string, patchPath: string): Promise { +async function runLint(binPath: string, patchPath: string): Promise { const debug = core.getInput(`debug`) if (debug.split(`,`).includes(`cache`)) { - const res = await execShellCommand(`${lintPath} cache status`) + const res = await execShellCommand(`${binPath} cache status`) printOutput(res) } @@ -266,7 +266,7 @@ async function runLint(lintPath: string, patchPath: string): Promise { cmdArgs.cwd = path.resolve(workingDirectory) } - const cmd = `${lintPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd() + const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd() core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`)