Permalink
Browse files

Improved version messaging.

  • Loading branch information...
1 parent 86405cb commit 9c138f8c124c8c76ebb1e3d9d5bd272fd738fd6e @ahume ahume committed Apr 3, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 build/deploy.js
View
@@ -25,14 +25,14 @@ var s3_sync_cmd = 's3cmd sync\
/* Check the build number we're about to deploy */
process.stdout.write('\nYou are deploying version: ' + getVersionNumber());
-process.stdout.write('\nIs this the correct version number? (y/n)');
+process.stdout.write('\nIs this the correct version number? (y/n)\n');
var stdin = process.openStdin();
stdin.setEncoding('utf8');
stdin.once('data', function(val) {
if (val.trim() === 'y') {
doDeploy();
} else {
- process.stdout.write("\nUpdate the version number in /version\n\n");
+ process.stdout.write("\nSo update the version number in ../version\n\n");
process.exit();
}
}).resume();
@@ -63,8 +63,9 @@ function doDeploy() {
}
}
// Remove the tmp dir. TODO: Deal with output?
- child_pr.exec('rm -rf ' + tmp_dir, function() {});
- process.exit();
+ child_pr.exec('rm -rf ' + tmp_dir, function() {
+ process.exit();
+ });
}
);
});

0 comments on commit 9c138f8

Please sign in to comment.