Skip to content

Commit

Permalink
Ensure Drupal8 detects the correct path for module/theme removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubarhouse committed Aug 30, 2017
1 parent 0941b13 commit e373a03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion make/make.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ func (Site *Site) ActionRebuildProject(Makefiles []string, Project string, GitPa
}

if moduleType != "" && moduleCat != "" {
ProjectDir := Site.Path + "/sites/all/" + moduleCat + "/" + moduleType + "/" + Project + "/"
var ProjectDir string
if MajorVersion < 8 {
ProjectDir = Site.Path + "/sites/all/" + moduleCat + "/" + moduleType + "/" + Project + "/"
} else {
ProjectDir = Site.Path + "/" + moduleCat + "/" + moduleType + "/" + Project + "/"
}
_, errMod := os.Stat(ProjectDir)
if errMod == nil {
*err = os.RemoveAll(ProjectDir)
Expand Down

0 comments on commit e373a03

Please sign in to comment.