mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Motd/version fixes, some logging improvements, manual update
This commit is contained in:
parent
c53c181a5b
commit
e0f7027b26
5 changed files with 22 additions and 98 deletions
|
@ -1,5 +1,6 @@
|
|||
const utils = require('./utils.js');
|
||||
const dataFile = "public/data.json";
|
||||
const versionFile = "public/version";
|
||||
|
||||
var p = GetParams();
|
||||
if (p.length <= 0) {
|
||||
|
@ -24,6 +25,7 @@ console.log("New version:");
|
|||
console.log(parsed.version);
|
||||
|
||||
utils.WriteFile(JSON.stringify(parsed), dataFile);
|
||||
utils.WriteFile(parsed.version, versionFile);
|
||||
|
||||
function GetParams() {
|
||||
return process.argv.splice(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue