diff --git a/packages/cache/src/internal/cacheUtils.ts b/packages/cache/src/internal/cacheUtils.ts index 1c4f55c0..0ab64eae 100644 --- a/packages/cache/src/internal/cacheUtils.ts +++ b/packages/cache/src/internal/cacheUtils.ts @@ -72,10 +72,10 @@ export async function unlinkFile(filePath: fs.PathLike): Promise { } async function getVersion(app: string, args?: string[]): Promise { - core.debug(`Checking ${app} --version`) let versionOutput = '' typeof args !== 'undefined' ? args : (args = []) args.push('--version') + core.debug(`Checking ${app} ${args.join(' ')}`) try { await exec.exec(`${app}`, args, { ignoreReturnCode: true,