mirror of
https://github.com/intergalacticalvariable/reader.git
synced 2024-11-16 03:32:25 +08:00
12 lines
269 B
JavaScript
Executable File
12 lines
269 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const file = path.resolve(__dirname, 'licensed/GeoLite2-City.mmdb');
|
|
|
|
if (!fs.existsSync(file)) {
|
|
console.error(`Integrity check failed: ${file} does not exist.`);
|
|
process.exit(1);
|
|
}
|