From edbbdcff33a923f6b3fcf2a316fb181b92e25e10 Mon Sep 17 00:00:00 2001 From: MATSUU Takuto Date: Thu, 26 Dec 2013 14:22:00 +0900 Subject: [PATCH] fix startup message --- lib/CLI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CLI.js b/lib/CLI.js index a607470f..e0b43f40 100644 --- a/lib/CLI.js +++ b/lib/CLI.js @@ -169,7 +169,7 @@ CLI.startup = function(platform) { console.error(cst.PREFIX_MSG + 'You have to run this command as root'); console.error(cst.PREFIX_MSG + 'Execute the following command :'); if (platform === undefined) platform = ''; - console.error(cst.PREFIX_MSG + 'sudo env PATH=$PATH:' + p.dirname(process.execPath) + ' pm2 startup ' + platform + '-u ' + stdout.trim()); + console.error(cst.PREFIX_MSG + 'sudo env PATH=$PATH:' + p.dirname(process.execPath) + ' pm2 startup ' + platform + ' -u ' + stdout.trim()); process.exit(cst.ERROR_EXIT); }); return;