File size: 369 Bytes
2e3c217
 
 
 
 
 
 
 
1ba2d7b
 
 
 
 
2e3c217
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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.warn(`Warning: ${file} does not exist, but continuing...`);
    // Don't exit with error code in HF environment
    if (!process.env.HF_SPACE_ID) {
        process.exit(1);
    }
}