mirror of
https://github.com/nick-fields/retry.git
synced 2026-02-10 15:15:30 +00:00
fix: make command spawnable to fix log issue
This commit is contained in:
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -415,7 +415,7 @@ module.exports = require("path");
|
||||
/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) {
|
||||
|
||||
const { getInput, error, warning, info, debug, setOutput } = __webpack_require__(470);
|
||||
const { spawn } = __webpack_require__(129);
|
||||
const child_process = __webpack_require__(129);
|
||||
const { join } = __webpack_require__(622);
|
||||
const ms = __webpack_require__(156);
|
||||
var kill = __webpack_require__(791);
|
||||
@@ -489,7 +489,11 @@ async function runCmd() {
|
||||
exit = 0;
|
||||
done = false;
|
||||
|
||||
var child = spawn('node', [__webpack_require__.ab + "exec.js", COMMAND], { stdio: 'inherit' });
|
||||
const file = COMMAND.split(' ')[0];
|
||||
const args = COMMAND.split(' ').slice(1);
|
||||
|
||||
var child = child_process.spawn(file, args, { stdio: 'inherit' });
|
||||
// var child = spawn('node', [join(__dirname, 'exec.js'), COMMAND], { stdio: 'inherit' });
|
||||
|
||||
child.on('exit', (code, signal) => {
|
||||
debug(`Code: ${code}`);
|
||||
|
||||
Reference in New Issue
Block a user