Fix linter

This commit is contained in:
dogbert911
2022-03-31 22:02:40 +03:00
committed by GitHub
parent 37a055c776
commit 2305ab2027

View File

@@ -24,15 +24,15 @@
* * https://github.com/docker/login-action/issues/72 * * * https://github.com/docker/login-action/issues/72 *
* * https://github.com/actions/runner/issues/1478 * * * https://github.com/actions/runner/issues/1478 *
* ================================================================================================================== */ * ================================================================================================================== */
const { exec } = require("child_process"); const { spawn } = require("child_process");
function run(cmdline) { function run(cmdline) {
var args = cmdline.split(' '); var args = cmdline.split(" ");
const cmd = args.shift(); const cmd = args.shift();
const subprocess = spawn(cmd, args, { stdio: 'inherit' }); const subprocess = spawn(cmd, args, { stdio: "inherit" });
subprocess.on('exit', (exit_code) => { subprocess.on("exit", (exitCode) => {
process.exitCode = exit_code process.exitCode = exitCode;
}); });
} }