* Run a set of commands provided as a multiline text block. Commands are assumed to always be * provided on a single line.
(commands?: string[])
| 47 | * provided on a single line. |
| 48 | */ |
| 49 | async function runCommands(commands?: string[]) { |
| 50 | if (!commands || commands.length === 0) { |
| 51 | return; |
| 52 | } |
| 53 | |
| 54 | for (const cmd of commands) { |
| 55 | await ChildProcess.exec(cmd, {mode: 'on-error'}); |
| 56 | } |
| 57 | } |