mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-23 02:25:08 +00:00
update version read
This commit is contained in:
parent
c3aa285fe5
commit
3c72375532
2 changed files with 1 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ process.on('SIGTERM', () => {
|
|||
process.exit(0);
|
||||
});
|
||||
|
||||
let VERSION = require('fs').readFileSync('version.txt', 'utf8').trim();
|
||||
const VERSION = require("fs").existsSync("version.txt") ? require("fs").readFileSync("version.txt", "utf8").trim() : "none";
|
||||
|
||||
const argv = yargs
|
||||
.option('slow', {
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
none
|
||||
Loading…
Add table
Add a link
Reference in a new issue