aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2022-01-10 20:14:22 +0100
committerAlystrasz <contact@remyraes.com>2022-01-10 20:14:22 +0100
commitedbf9b25a4eb80d54d7a4ad4a1857bc6b8a3294d (patch)
treebcb222a83944140d4aab7107866d43af9524a787 /src
parentb71a948c8295bf1e55d2bd32f270b65280ba2b26 (diff)
downloadViper-edbf9b25a4eb80d54d7a4ad4a1857bc6b8a3294d.tar.gz
Viper-edbf9b25a4eb80d54d7a4ad4a1857bc6b8a3294d.zip
[fix] not running auto-updates if viper.json does not exist
Diffstat (limited to 'src')
-rw-r--r--src/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.js b/src/utils.js
index eeeb1da..72c0ba2 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -36,7 +36,7 @@ if (fs.existsSync("viper.json")) {
northstar_auto_updates: {
- if (!settings.autoupdate) break northstar_auto_updates;
+ if (!settings.autoupdate || !fs.existsSync("viper.json")) break northstar_auto_updates;
async function _checkForUpdates() {
const localVersion = getNSVersion();