diff options
author | Igor Baiborodine <igor@kiroule.com> | 2022-06-07 15:32:11 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-06-07 16:28:47 +0300 |
commit | 1af539b86723d065764fc092fa9fb028ab489d17 (patch) | |
tree | b92c88e04bc3f278674afa8772b4658445f7676c /pkg | |
parent | a544519d3729ca9f75fc7c096087af7d5d588cd2 (diff) |
Update build.go
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/buildcmd/build.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/buildcmd/build.go b/pkg/buildcmd/build.go index 209986f..a4f6878 100644 --- a/pkg/buildcmd/build.go +++ b/pkg/buildcmd/build.go @@ -169,8 +169,8 @@ func (c *buildClient) writeThemesContent() error { } func (c *buildClient) writeThemeContent(k string, m client.Module) error { - re := regexp.MustCompile(`\/v\d+$`) - themeName := strings.ToLower(path.Base(re.ReplaceAllString(k, ""))) + re := regexp.MustCompile(`\/v\d+$`) + themeName := strings.ToLower(path.Base(re.ReplaceAllString(k, ""))) themeDir := filepath.Join(c.contentDir, "themes", themeName) client.CheckErr(os.MkdirAll(themeDir, 0777)) |