summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/initialize.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/initialize.js b/lib/initialize.js
index 9585859..127b0c6 100644
--- a/lib/initialize.js
+++ b/lib/initialize.js
@@ -14,12 +14,14 @@ var mdbvideos = require('./login'),
colors = require('colors'),
inquirer = require('inquirer');
+var isWin = (/^win/.test(process.platform));
+
function checkName(profile) {
'use strict';
var greetings = 'Hi ';
- return ((profile.firstName !== '') ? greetings + profile.firstName : greetings + profile.userName) + ' ' + emoji.smile;
+ return ((profile.firstName !== '') ? greetings + profile.firstName : greetings + profile.userName) + ((!isWin) ? ' ' + emoji.smile : '');
}
module.exports = function run(profile, argv) {