1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 05:10:05 +02:00
Files
gitlit/node_modules/electron-download/lib/cli.js
2018-06-03 13:57:23 +02:00

19 lines
331 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict'
const download = require('./')
const minimist = require('minimist')
let opts = minimist(process.argv.slice(2))
if (opts['strict-ssl'] === false) {
opts.strictSSL = false
}
download(opts, (err, zipPath) => {
if (err) throw err
console.log('Downloaded zip:', zipPath)
process.exit(0)
})