Skip to content

Commit

Permalink
fix(ci): upload script breaks on exit status 0
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Mar 22, 2017
1 parent 821d9eb commit bcddcf2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions config/build/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ let exit_status = 0;
function spawn_processes(scripts) {
let script = scripts.shift();
if (!script) {
exit(exit_status);
console.log('Exit status ' + exit_status);
process.exit(exit_status);
} else {
spawn_process(
script,
Expand Down Expand Up @@ -172,8 +173,3 @@ function timestamp(input, length) {
function pad(input) {
return '00'.substring(0, 2 - input.toString().length) + input;
}

function exit(status) {
console.log('Exit status ' + status);
process.exit(status);
}

0 comments on commit bcddcf2

Please sign in to comment.