diff options
author | Alystrasz <contact@remyraes.com> | 2022-01-10 20:14:22 +0100 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2022-01-10 20:14:22 +0100 |
commit | edbf9b25a4eb80d54d7a4ad4a1857bc6b8a3294d (patch) | |
tree | bcb222a83944140d4aab7107866d43af9524a787 | |
parent | b71a948c8295bf1e55d2bd32f270b65280ba2b26 (diff) | |
download | Viper-edbf9b25a4eb80d54d7a4ad4a1857bc6b8a3294d.tar.gz Viper-edbf9b25a4eb80d54d7a4ad4a1857bc6b8a3294d.zip |
[fix] not running auto-updates if viper.json does not exist
-rw-r--r-- | src/utils.js | 2 |
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(); |