(value: string)
| 10 | |
| 11 | |
| 12 | function systemdEscapeArg(value: string): string { |
| 13 | assertNoLineBreaks(value, 'Systemd unit values'); |
| 14 | if (!/[\s"\\]/.test(value)) { |
| 15 | return value; |
| 16 | } |
| 17 | return `"${value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`; |
| 18 | } |
| 19 | |
| 20 | export interface BuildSystemdUnitInput { |
| 21 | description?: string; |
no test coverage detected