Skip to content

Commit

Permalink
use path.join, not string concat
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ ONeal committed Jul 16, 2013
1 parent bdbd65a commit e0aa473
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions standalone-mailer/mailed.js
Expand Up @@ -3,8 +3,9 @@
"use strict";

var fs = require('fs')
, path = require('path')
, forEachAsync = require('forEachAsync')
, config = JSON.parse(fs.readFileSync(process.env.HOME + '/.mailed.conf'))
, config = JSON.parse(fs.readFileSync(path.join(process.env.HOME, '.mailed.conf')))
, nodemailer = require('nodemailer')
, to = process.argv[2]
, subject = (process.argv[3] || '').replace('\n', ' ')
Expand Down Expand Up @@ -60,4 +61,4 @@

next();
}).then(doMailing);
}());
}());

0 comments on commit e0aa473

Please sign in to comment.