Skip to content

Commit e3c0841

Browse files
committed
Fix output of shell command
1 parent 9256cec commit e3c0841

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/installer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function exec2(command) {
137137
return new Promise((resolve, reject) => {
138138
child.exec(command, (err, stdout, stderr) => {
139139
if (stderr) {
140-
resolve();
140+
resolve(stdout);
141141
}
142142
if (err) {
143143
console.log(err);

src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async function exec2(command: string) {
106106
return new Promise((resolve, reject) => {
107107
child.exec(command, (err: any, stdout: any, stderr: any) => {
108108
if (stderr) {
109-
resolve();
109+
resolve(stdout);
110110
}
111111

112112
if (err) {

0 commit comments

Comments
 (0)