Update build.go

This commit is contained in:
Igor Baiborodine authored and Bjørn Erik Pedersen committed 2022-06-07 15:28:47 +02:00
1 parent a544519d37
commit 1af539b867
1 file changed
+2 -2
+2 -2
View File
@@ -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))