(code)
| 33 | |
| 34 | // called on close of a child process |
| 35 | function childClose (code) { |
| 36 | var i, len; |
| 37 | code = code ? (code.code || code) : code; |
| 38 | if (verbose) { |
| 39 | if (code > 0) { |
| 40 | console.error('`' + this.cmd + '` failed with exit code ' + code); |
| 41 | } else { |
| 42 | console.log('`' + this.cmd + '` ended successfully'); |
| 43 | } |
| 44 | } |
| 45 | if (code > 0 && !wait) close(code); |
| 46 | status(); |
| 47 | } |
| 48 | |
| 49 | function status () { |
| 50 | if (verbose) { |