mirror of
https://github.com/slynn1324/tinypin
synced 2026-11-16 02:16:35 +00:00
get version from env
This commit is contained in:
1 parent
3c72375532
commit
9385a61fea
1 file changed
+1
-1
@@ -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