add trim
parent
b166994869
commit
5ae4ffe22e
|
|
@ -3838,7 +3838,7 @@ exports.supportedPackageManagers = {
|
|||
exports.getCommandOutput = (toolCommand) => __awaiter(void 0, void 0, void 0, function* () {
|
||||
let { stdout, stderr, exitCode } = yield exec.getExecOutput(toolCommand, undefined, { ignoreReturnCode: true });
|
||||
if (exitCode) {
|
||||
stderr = !stderr
|
||||
stderr = !stderr.trim()
|
||||
? `The '${toolCommand}' command failed with exit code: ${exitCode}`
|
||||
: stderr;
|
||||
throw new Error(stderr);
|
||||
|
|
|
|||
|
|
@ -46209,7 +46209,7 @@ exports.supportedPackageManagers = {
|
|||
exports.getCommandOutput = (toolCommand) => __awaiter(void 0, void 0, void 0, function* () {
|
||||
let { stdout, stderr, exitCode } = yield exec.getExecOutput(toolCommand, undefined, { ignoreReturnCode: true });
|
||||
if (exitCode) {
|
||||
stderr = !stderr
|
||||
stderr = !stderr.trim()
|
||||
? `The '${toolCommand}' command failed with exit code: ${exitCode}`
|
||||
: stderr;
|
||||
throw new Error(stderr);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ export const getCommandOutput = async (toolCommand: string) => {
|
|||
);
|
||||
|
||||
if (exitCode) {
|
||||
stderr = !stderr
|
||||
stderr = !stderr.trim()
|
||||
? `The '${toolCommand}' command failed with exit code: ${exitCode}`
|
||||
: stderr;
|
||||
throw new Error(stderr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue