Skip to content

Commit

Permalink
Merge pull request #81 from retrohacker/issue78Webpack
Browse files Browse the repository at this point in the history
Issue78 webpack
  • Loading branch information
William Blankenship committed Nov 22, 2018
2 parents 2d96f47 + 1ca442c commit e290eff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var async = require('async')
var distros = require('./os.json')
var fs = require('fs')
var os = require('os')
var path = require('path')

/**
* Begin definition of globals.
Expand Down Expand Up @@ -121,7 +120,7 @@ function getName (candidate) {
* Loads a custom logic module to populate additional distribution information
*/
function customLogic (os, name, file, cb) {
var logic = path.join(__dirname, 'logic/' + name + '.js')
var logic = './logic/' + name + '.js'
try { require(logic)(os, file, cb) } catch (e) { cb(null, os) }
}

Expand Down

0 comments on commit e290eff

Please sign in to comment.