diff --git a/index.js b/index.js index 4c17069..29a6684 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ const cmd = async (command, ...args) => { stderr: (data) => { errors += data.toString(); } }; - await exec.exec(command + args.map(a => ` ${a}`).join(' '), [], options) + await exec.exec(command, args, options) .catch(err => { core.info(`The command '${command} ${args.join(' ')}' failed: ${err}`); }); if (errors !== '') {