MCPcopy
hub / github.com/ampproject/amphtml / execOrDie

Function execOrDie

build-system/common/exec.js:46–51  ·  view source on GitHub ↗

* Executes the provided command, and terminates the program in case of failure. * * @param {string} cmd * @param {?Object=} options

(cmd, options)

Source from the content-addressed store, hash-verified

44 * @param {?Object=} options
45 */
46function execOrDie(cmd, options) {
47 const p = exec(cmd, options);
48 if (p.status && p.status != 0) {
49 process.exit(p.status);
50 }
51}
52
53/**
54 * Executes the provided command, piping the parent process' stderr, updating

Callers 11

avaFunction · 0.85
validatorFunction · 0.85
validatorCppFunction · 0.85
validatorWebuiFunction · 0.85
maybeBuildFunction · 0.85
prepareEnvironment_Function · 0.85
compileDistFlavors_Function · 0.85
fetchCoverage_Function · 0.85
extractCssJsFileMapFunction · 0.85
updateDepsFunction · 0.85
buildRuntimeFunction · 0.85

Calls 2

execFunction · 0.85
exitMethod · 0.80

Tested by

no test coverage detected