diff --git a/lib/binary.js b/lib/binary.js index a32f14e..a1477e5 100644 --- a/lib/binary.js +++ b/lib/binary.js @@ -3,7 +3,7 @@ const BinWrapper = require('bin-wrapper'); const pkgConf = require('pkg-conf'); const getBinalyName = require('./getBinalyName'); -const hugoVersion = pkgConf.sync('hugoBin').hugoVersion; +const hugoVersion = pkgConf.sync('hugoBin', {cwd: path.join(__dirname, '../')}).hugoVersion; const baseUrl = `https://github.com/spf13/hugo/releases/download/v${hugoVersion}/`; const binalyNames = getBinalyName(hugoVersion, process.platform, process.arch);