mirror of
https://github.com/smogon/sprites.git
synced 2026-04-25 07:18:19 -05:00
tupctime: make directory optional
This commit is contained in:
parent
fb10d85d4e
commit
fc54681959
|
|
@ -5,12 +5,10 @@ const Database = require('better-sqlite3');
|
|||
const debug = require('debug')('tupctime');
|
||||
|
||||
const start = process.argv[2];
|
||||
if (start === undefined) {
|
||||
throw new Error("Pass in directory containing tup db.");
|
||||
if (start !== undefined) {
|
||||
process.chdir(start);
|
||||
}
|
||||
|
||||
process.chdir(start);
|
||||
|
||||
while (true) {
|
||||
if (fs.existsSync('.tup')) {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user