Skip to content

Commit

Permalink
fix: default to config.bin if no binPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 24, 2018
1 parent 684f3aa commit 914e0e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ async function mtime(f: string) {
export const init: Config.Hook<'init'> = async function (opts) {
if (opts.id === 'update') return
cli.config.errlog = opts.config.errlog
const binPath = this.config.binPath
if (!binPath) return this.debug('no binpath set')
const binPath = this.config.binPath || this.config.bin
const lastrunfile = path.join(this.config.cacheDir, 'lastrun')
const autoupdatefile = path.join(this.config.cacheDir, 'autoupdate')
const autoupdatelogfile = path.join(this.config.cacheDir, 'autoupdate.log')
Expand Down

0 comments on commit 914e0e1

Please sign in to comment.