* Executes the provided shell script in an asynchronous process. Special-cases * the AMP task runner so that it is correctly spawned on all platforms (node * shebangs do not work on Windows). * * @param {string} script * @param {?Object} options * @return {!childProcess.ChildProcessWithoutNull
(script, options)
| 33 | * @return {!childProcess.ChildProcessWithoutNullStreams} |
| 34 | */ |
| 35 | function execScriptAsync(script, options) { |
| 36 | const scriptToSpawn = script.startsWith('amp ') ? `node ${script}` : script; |
| 37 | return childProcess.spawn(scriptToSpawn, {shell: shellCmd, ...options}); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Executes the provided command, and terminates the program in case of failure. |
no outgoing calls
no test coverage detected