This commit is contained in:
Henrique Dias
2015-09-27 20:33:36 +01:00
parent f95059d897
commit 34d72cbbc9
2 changed files with 4 additions and 16 deletions

View File

@@ -161,7 +161,7 @@ func ParseComponents(r *http.Request) []string {
// Run is used to run the static website generator
func Run(c *config.Config) {
if !c.Hugo {
if c.Command != "" {
out, err := exec.Command(c.Command, c.Args...).Output()
if err != nil {
log.Panic("Can't execute the commands defined on Caddyfile.")