Skip to content

Commit

Permalink
Fix output of shell command
Browse files Browse the repository at this point in the history
  • Loading branch information
coturiv committed May 13, 2020
1 parent 9256cec commit e3c0841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function exec2(command) {
return new Promise((resolve, reject) => {
child.exec(command, (err, stdout, stderr) => {
if (stderr) {
resolve();
resolve(stdout);
}
if (err) {
console.log(err);
Expand Down
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function exec2(command: string) {
return new Promise((resolve, reject) => {
child.exec(command, (err: any, stdout: any, stderr: any) => {
if (stderr) {
resolve();
resolve(stdout);
}

if (err) {
Expand Down

0 comments on commit e3c0841

Please sign in to comment.