1
0
Fork 0

Update debug statement to include latest command

pull/1353/head
Lovepreet Singh 2023-02-20 14:23:53 +00:00
parent 0f91c9c203
commit 6ec51745ad
1 changed files with 1 additions and 1 deletions

View File

@ -72,10 +72,10 @@ export async function unlinkFile(filePath: fs.PathLike): Promise<void> {
}
async function getVersion(app: string, args?: string[]): Promise<string> {
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,