Skip to content

Commit

Permalink
🐛 Update execOrDie to handle a null status (ampproject#23009)
Browse files Browse the repository at this point in the history
* update execOrDie

* remove e2e node_modules from Travis cache
  • Loading branch information
estherkim authored Jun 25, 2019
1 parent d824caa commit 4cd544b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ jobs:
cache:
directories:
- node_modules
- build-system/tasks/e2e/node_modules
- build-system/tasks/visual-diff/node_modules
- sauce_connect
- validator/node_modules
Expand Down
2 changes: 1 addition & 1 deletion build-system/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function execScriptAsync(script, options) {
*/
function execOrDie(cmd, options) {
const p = exec(cmd, options);
if (p.status != 0) {
if (p.status && p.status != 0) {
process.exit(p.status);
}
}
Expand Down

0 comments on commit 4cd544b

Please sign in to comment.