Skip to content

Commit

Permalink
fix: exit with child's exit code
Browse files Browse the repository at this point in the history
Closes #5.
  • Loading branch information
agoldis committed Apr 30, 2021
1 parent 411681b commit 8a09906
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ exports.patch = function () {
fs.writeFileSync(configFilePath, yaml.dump(doc));

const [node, script, ...rest] = process.argv;
cp.spawn(cliBinPath, [...rest], { stdio: 'inherit' });
const child = cp.spawn(cliBinPath, [...rest], { stdio: 'inherit' });

child.on('exit', (code) => process.exit(code));
});
};

0 comments on commit 8a09906

Please sign in to comment.