reader/backend/functions/integrity-check.cjs

12 lines
269 B
JavaScript
Raw Permalink Normal View History

2024-05-14 19:39:43 +08:00
#!/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);
}