fixed install thing I think

pull/29/head
tycrek 3 years ago
parent 17c35acde7
commit cc9836b94d
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -202,7 +202,7 @@ function doSetup() {
.then(() => {
// Make sure auth.json exists and generate the first key
if (!fs.existsSync(path('auth.json'))) {
if (!fs.existsSync(path('auth.json')) || fs.readFileSync(path('auth.json')).length < 8) {
let users = {};
users[token()] = { username: 'ass', count: 0 };
fs.writeJsonSync(path('auth.json'), { users }, { spaces: 4 });

Loading…
Cancel
Save