* Executes the provided command, and terminates the program in case of failure. * * @param {string} cmd * @param {?Object=} options
(cmd, options)
| 44 | * @param {?Object=} options |
| 45 | */ |
| 46 | function execOrDie(cmd, options) { |
| 47 | const p = exec(cmd, options); |
| 48 | if (p.status && p.status != 0) { |
| 49 | process.exit(p.status); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Executes the provided command, piping the parent process' stderr, updating |
no test coverage detected