Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
order child_process.exec callback parameters correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgm committed Mar 17, 2014
1 parent b6ef856 commit 4d4fdde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions users/app/post-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function doDeploy() {
if (!commands.length) return cb();
var cmd = commands.shift();
console.log(">>", cmd[0]);
var c = child_process.exec(cmd[1], cmd[2] ? cmd[2] : {}, function(err, se, so) {
var c = child_process.exec(cmd[1], cmd[2] ? cmd[2] : {}, function(err, stdout, stderr) {
checkErr("while " + cmd[0], err);
runNextCommand(cb);
});
Expand Down Expand Up @@ -215,7 +215,7 @@ function doDeploy() {
function allDone() {
console.log('>> extracting current sha');
var gitver = "git log -1 --oneline master > $HOME/ver.txt";
var cp = child_process.exec(gitver, {}, function(err, se, so) {
var cp = child_process.exec(gitver, {}, function(err, stdout, stderr) {
checkErr("while " + gitver, err);
console.log('>> all done');
});
Expand Down

0 comments on commit 4d4fdde

Please sign in to comment.