(options: ExecutionOptions)
| 54 | let stdbufPath: null | string = null; |
| 55 | |
| 56 | function checkExecOptions(options: ExecutionOptions) { |
| 57 | if (options.env) { |
| 58 | for (const key of Object.keys(options.env)) { |
| 59 | const value: any = options.env[key]; |
| 60 | if (value !== undefined && typeof value !== 'string') { |
| 61 | logger.warn(`Found non-string in environment: ${key} of ${typeof value} : '${value}'`); |
| 62 | options.env[key] = value.toString(); |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | function setupOnError(stream: Stream, name: string) { |
| 69 | if (stream === undefined) return; |