diff options
author | HyeonGyu Lee <vazrupe@naver.com> | 2019-08-15 16:33:47 +0900 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-15 09:33:47 +0200 |
commit | ea9261e856c13c1d4ae05fcca08766d410b4b65c (patch) | |
tree | 70c68f81d682dff217848bee8b215369ad4a94ea /commands/new_theme.go | |
parent | 37f592980315de1890363d4234274a16567a6da0 (diff) |
commands: Make sure the hugo field is always initialized before it's used
Wrap the field to make it accessible after initialization.
Fixes #6193
Diffstat (limited to 'commands/new_theme.go')
-rw-r--r-- | commands/new_theme.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/new_theme.go b/commands/new_theme.go index 936f67e99..a0a4e89e3 100644 --- a/commands/new_theme.go +++ b/commands/new_theme.go @@ -63,7 +63,7 @@ func (n *newThemeCmd) newTheme(cmd *cobra.Command, args []string) error { return newUserError("theme name needs to be provided") } - createpath := c.hugo.PathSpec.AbsPathify(filepath.Join(c.Cfg.GetString("themesDir"), args[0])) + createpath := c.hugo().PathSpec.AbsPathify(filepath.Join(c.Cfg.GetString("themesDir"), args[0])) jww.FEEDBACK.Println("Creating theme at", createpath) cfg := c.DepsCfg |