From 653f15b2dbbe3509c74b5fc0e4ee9d3923a9dab2 Mon Sep 17 00:00:00 2001 From: Shun Sato Date: Wed, 8 Jun 2016 23:41:26 +0900 Subject: [PATCH] fix(config): fix critical bug to default hugoVersion (#3) --- lib/binary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);