mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-08-03 18:55:21 -04:00
fix(config): fix critical bug to default hugoVersion (#3)
This commit is contained in:
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user