diff --git a/dist/index.js b/dist/index.js index 3e1a21f..186597a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -52,10 +52,7 @@ try { await _actions_exec__WEBPACK_IMPORTED_MODULE_3__.exec(`ls ${path__WEBPACK_IMPORTED_MODULE_4__.dirname(binPath)}`); console.log(`Making zbctl (${binPath}) available`); _actions_core__WEBPACK_IMPORTED_MODULE_0__.addPath(path__WEBPACK_IMPORTED_MODULE_4__.dirname(binPath)); - const output = await _actions_exec__WEBPACK_IMPORTED_MODULE_3__.getExecOutput(`zbctl ${command}`); - if (output.exitCode != 0) { - _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(`zbctl failed with exit code ${output.exitCode}: ${output.stderr}`); - } + const output = await _actions_exec__WEBPACK_IMPORTED_MODULE_3__.getExecOutput(`bash -c "zbctl ${command}"`); _actions_core__WEBPACK_IMPORTED_MODULE_0__.setOutput("result", output.stdout); } catch (error) { _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(error.message); diff --git a/index.js b/index.js index aed45f7..cbd2ce1 100644 --- a/index.js +++ b/index.js @@ -33,10 +33,7 @@ try { await exec.exec(`ls ${path.dirname(binPath)}`); console.log(`Making zbctl (${binPath}) available`); core.addPath(path.dirname(binPath)); - const output = await exec.getExecOutput(`zbctl ${command}`); - if (output.exitCode != 0) { - core.setFailed(`zbctl failed with exit code ${output.exitCode}: ${output.stderr}`); - } + const output = await exec.getExecOutput(`bash -c "zbctl ${command}"`); core.setOutput("result", output.stdout); } catch (error) { core.setFailed(error.message);