Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
svicalifornia committed Jun 24, 2022
1 parent 0d7eba9 commit ae967d0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cli/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ module.exports = {
signals.forEach(signal => process.on(signal, cleanAndExit));

const [command, ...args] = getCmd(cmd);
const { status, error } = this._spawnSync(command, args, {
stdio: "inherit",
cwd: process.cwd()
});
const { status, error } =
this._spawnSync(command, args, {
stdio: "inherit",
cwd: process.cwd()
}) || {};

if (error) throw error;
cleanAndExit(status);
Expand Down

0 comments on commit ae967d0

Please sign in to comment.