diff options
author | 0neGal <mail@0negal.com> | 2021-12-29 00:18:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 00:18:34 +0100 |
commit | 79672ab18d84bd7599205ebf0c39779a5f2b2888 (patch) | |
tree | 1300cfd604c29fd48320d23c7bed94a7a9b20e4c /src/utils.js | |
parent | 9d5498708b1b7db82fae53b4c858de7e43f21c95 (diff) | |
download | Viper-79672ab18d84bd7599205ebf0c39779a5f2b2888.tar.gz Viper-79672ab18d84bd7599205ebf0c39779a5f2b2888.zip |
lil touch up on the log messages
Diffstat (limited to 'src/utils.js')
-rw-r--r-- | src/utils.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/utils.js b/src/utils.js index 5ae535f..f310ef8 100644 --- a/src/utils.js +++ b/src/utils.js @@ -80,12 +80,13 @@ function update() { }, (error, response, body) => { var tag = body["tag_name"]; - console.log("current version:", version); - console.log("remote version:", tag); - if (version === tag) { - console.log("Latest version is already installed, skipping update."); + console.log(`Latest version (${version}) is already installed, skipping update.`); return; + } else { + if (version != "unknown") { + console.log("Current version:", version); + }; console.log("Downloading:", tag); } https.get(body.assets[0].browser_download_url, (res) => { |