From a69d9dbc80dfaa0fc3eef3b5ac48e1c2a25fa08b Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Thu, 21 Oct 2021 12:11:34 +0200 Subject: :lipstick: Make cursor show when user input is requested --- src/SelfUpdater/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/SelfUpdater') diff --git a/src/SelfUpdater/index.js b/src/SelfUpdater/index.js index 441ec6a..19ff4c2 100644 --- a/src/SelfUpdater/index.js +++ b/src/SelfUpdater/index.js @@ -154,6 +154,8 @@ class Updater { // Restart self, systemd service restart policy will start us up again. this.setStep("Stopping luxcena neo service in the hope that systemd will restart it. (8/8)"); this.setCommand("EXIT"); + this.updating = false; + this.event.emit("end"); process.exit(0); } catch (e) { @@ -184,8 +186,6 @@ class Updater { this.event.emit("error", this.updatelog); neoModules.neoRuntimeManager.startMode(); } - this.updating = false; - this.event.emit("end"); } /** @@ -193,7 +193,7 @@ class Updater { */ async run(cmd, opts) { this.setCommand(`${cmd} ` + opts.join(" ")); - await promiseSpawn(cmd, opts); + return await promiseSpawn(cmd, opts); } /** -- cgit v1.2.3