mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-23 02:25:08 +00:00
get version from env
This commit is contained in:
parent
3c72375532
commit
9385a61fea
1 changed files with 1 additions and 1 deletions
|
|
@ -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', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue