mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-04-27 02:18:27 -04:00
fix(config): fix critical bug to default hugoVersion (#3)
This commit is contained in:
parent
8fba460134
commit
653f15b2db
@ -3,7 +3,7 @@ const BinWrapper = require('bin-wrapper');
|
|||||||
const pkgConf = require('pkg-conf');
|
const pkgConf = require('pkg-conf');
|
||||||
const getBinalyName = require('./getBinalyName');
|
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 baseUrl = `https://github.com/spf13/hugo/releases/download/v${hugoVersion}/`;
|
||||||
|
|
||||||
const binalyNames = getBinalyName(hugoVersion, process.platform, process.arch);
|
const binalyNames = getBinalyName(hugoVersion, process.platform, process.arch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user