Skip to content

Commit

Permalink
fix: install script
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Jul 13, 2023
1 parent 46533a6 commit 52a58b0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bin/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env node

import Cli from "#core/cli";
import externalResources from "#core/external-resources";

const CLI = {
"title": "Update resources",
"options": {
"force": {
"description": "Force build",
"default": false,
"schema": {
"type": "boolean",
},
},
},
};

await Cli.parse( CLI );

externalResources.add( "softvisio-node/geoip-asn/resources/geolite2-asn" );

const res = await externalResources.update( {
"remote": true,
"force": process.cli.options.force,
"silent": false,
} );

if ( !res.ok ) process.exit( 1 );

0 comments on commit 52a58b0

Please sign in to comment.