aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2021-10-21 12:11:34 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-10-21 12:25:07 +0200
commita69d9dbc80dfaa0fc3eef3b5ac48e1c2a25fa08b (patch)
tree9b25e6509d5dd25cb0b08c979b2150744532da93 /src
parenta975479fc3eaa0fc89341603bffb0224bed1be3d (diff)
downloadLuxcena-Neo-a69d9dbc80dfaa0fc3eef3b5ac48e1c2a25fa08b.tar.gz
Luxcena-Neo-a69d9dbc80dfaa0fc3eef3b5ac48e1c2a25fa08b.zip
:lipstick: Make cursor show when user input is requested
Diffstat (limited to 'src')
-rw-r--r--src/SelfUpdater/index.js6
1 files changed, 3 insertions, 3 deletions
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);
}
/**