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

No files matched your search

+1 -1
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.")