Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Commit

Permalink
add checkPath to front
Browse files Browse the repository at this point in the history
  • Loading branch information
antiwinter committed Sep 12, 2019
1 parent a0d317b commit ae21377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ function install(ad, update, hook) {
function batchInstall(aa, update, done) {
let t0 = moment().unix()

if (!cfg.checkPath()) return

let list = new Listr([], { concurrent: 10 })
let ud = 0
let id = 0
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ cli
cli
.command('ls')
.description('list all installed addons')
.option(
'-l, --long',
'show detailed addon information'
)
.option('-l, --long', 'show detailed addon information')
.alias('list')
.action(core.ls)

Expand Down Expand Up @@ -97,6 +94,9 @@ cli.on('command:*', () => {
if (process.argv.length < 3) return cli.help()

// do the job

if (!cfg.checkPath()) return

core.checkUpdate(() => {
cli.parse(process.argv)
})

0 comments on commit ae21377

Please sign in to comment.