re-add git commit to console version string

This commit is contained in:
zefie
2021-08-08 14:26:17 -04:00
parent d4e355a0a3
commit 75c59d9e56

View File

@@ -1349,7 +1349,8 @@ function getGitRevision() {
// SERVER START
var git_commit = getGitRevision()
var z_title = "zefie's wtv minisrv v" + require('./package.json').version;
console.log("**** Welcome to " + z_title + " ****");
if (git_commit) console.log("**** Welcome to " + z_title + " (git " + git_commit + ") ****");
else console.log("**** Welcome to " + z_title + " ****");
console.log(" *** Reading global configuration...");
try {
var minisrv_config = JSON.parse(fs.readFileSync(__dirname + path.sep + "config.json"));