mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Fix linter
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user