1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 16:58:26 -04:00

fix(config): fix critical bug to default hugoVersion (#3)

This commit is contained in:
Shun Sato 2016-06-08 23:41:26 +09:00
parent 8fba460134
commit 653f15b2db

View File

@ -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);