From 8eeda43b9d33241becae09e8a9e35e2eee4919f6 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Tue, 15 May 2018 21:57:23 -0700 Subject: [PATCH] Moved process exit to the end such that it exits with success and fail, both. --- app-backend/src/utils/CaptainInstaller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app-backend/src/utils/CaptainInstaller.js b/app-backend/src/utils/CaptainInstaller.js index 0e9c6f1..48e9f05 100644 --- a/app-backend/src/utils/CaptainInstaller.js +++ b/app-backend/src/utils/CaptainInstaller.js @@ -320,6 +320,8 @@ module.exports.install = function () { .catch(function (error) { console.log('Installation failed.'); console.error(error); + }) + .then(function () { process.exit(); }); };