Skip to content

Commit

Permalink
Fix a regression in release script (resolve with stderr) (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek authored Jun 28, 2024
1 parent e420f88 commit 2a3d9c4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/release/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ export const exec = (cmd: string): Promise<string> =>
return reject(error);
}

const out = stdout === '""' ? "" : stdout.trim();
const err = stderr === '""' ? "" : stderr.trim();

if (err) {
return reject(new Error(err));
}

const out = stdout === '""' ? "" : stdout.trim();
return resolve(out);
resolve(out || err);
});
});

Expand Down

0 comments on commit 2a3d9c4

Please sign in to comment.