Skip to content

Commit

Permalink
Clean up utility scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahbritto committed Jan 3, 2013
1 parent 6f7712e commit 43f888f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/email_hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
// Returns a Gravatar style hash as per: http://en.gravatar.com/site/implement/hash/
//

if (process.argv.length != 3) {
if (3 != process.argv.length) {
process.stderr.write("Usage: " + process.argv[1] + " email_address\n\nReturns gravitar style hash.\n");
process.exit(1);

} else {
var md5 = require('crypto').createHash('md5');
Expand Down
3 changes: 2 additions & 1 deletion bin/hexify.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ var stringToHex = function (s) {
}).join("");
};

if (process.argv.length != 3) {
if (3 != process.argv.length) {
process.stderr.write("Usage: " + process.argv[1] + " string\n\nReturns hex of lowercasing string.\n");
process.exit(1);

} else {

Expand Down

0 comments on commit 43f888f

Please sign in to comment.