mirror of
https://github.com/slynn1324/tinypin
synced 2026-05-04 01:40:43 +00:00
get version from env
This commit is contained in:
@@ -23,7 +23,7 @@ process.on('SIGTERM', () => {
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
const VERSION = require("fs").existsSync("version.txt") ? require("fs").readFileSync("version.txt", "utf8").trim() : "none";
|
||||
const VERSION = process.env['TINYPIN_VERSION'] ? process.env['TINYPIN_VERSION'].trim() : "none";
|
||||
|
||||
const argv = yargs
|
||||
.option('slow', {
|
||||
|
||||
Reference in New Issue
Block a user