Skip to content

Commit

Permalink
Print version info
Browse files Browse the repository at this point in the history
  • Loading branch information
m4heshd committed Sep 22, 2019
1 parent 868212d commit f8c8d2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ fs.readJson(path.join(__dirname, 'info.json'), (error, infoJSON) => {
});

function checkAppUpd() {
console.log('Checking for dark mode updates..\n');
console.log('Checking for dark mode updates.. (Current version - v' + version + ')\n');

let req = request(new URL(updURL), function (res) {

res.on('data', (d) => {
let latest = JSON.parse(d.toString())["version"];
if (semver.lt(version, latest)) {
ask('A new update is available. Would you like to download? (Y or N) : ', openDownload, start);
ask('A new update is available (v' + latest +'). Would you like to download? (Y or N) : ', openDownload, start);
} else {
if (!started) {
start();
Expand Down

0 comments on commit f8c8d2f

Please sign in to comment.