Skip to content

Commit

Permalink
🎨 Bazaar resource directories support symlink #8263
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed May 16, 2023
1 parent 9455086 commit 8b6abec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/model/bazzar.go
Expand Up @@ -249,7 +249,7 @@ func UninstallBazaarTheme(themeName string) error {
func BazaarTemplates() (templates []*bazaar.Template) {
templates = bazaar.Templates()
for _, template := range templates {
template.Installed = gulu.File.IsExist(filepath.Join(util.DataDir, "templates", template.Name))
template.Installed = util.IsPathRegularDirOrSymlinkDir(filepath.Join(util.DataDir, "templates", template.Name))
if template.Installed {
if themeConf, err := bazaar.TemplateJSON(template.Name); nil == err && nil != themeConf {
if template.Version != themeConf.Version {
Expand Down

0 comments on commit 8b6abec

Please sign in to comment.