Function
getShellArgs
(shellPath: string, script: string)
Source from the content-addressed store, hash-verified
| 193 | } |
| 194 | |
| 195 | function getShellArgs(shellPath: string, script: string): string[] { |
| 196 | const shellName = parse(shellPath).name.toLowerCase() |
| 197 | if (shellName === 'fish') { |
| 198 | return ['-c', script] |
| 199 | } |
| 200 | return ['-lc', script] |
| 201 | } |
| 202 | |
| 203 | async function runBlock(block: ScriptBlock, cwd: string): Promise<number> { |
| 204 | const shellPath = resolveShellForLanguage(block.language) |
Tested by
no test coverage detected