stop installing hugo. ask the user to do it

This commit is contained in:
Henrique Dias committed 2016-08-25 20:45:48 +01:00
1 parent f878cc3040
commit 629d2092a1
4 files changed
+7 -194

No files matched your search

+7 -1
View File
@@ -143,7 +143,13 @@ func parse(c *caddy.Controller, root string) (*Config, error) {
Root: "./",
}
conf.Hugo = getPath()
if hugo, err = exec.LookPath("hugo"); err == nil {
conf.Hugo = hugo;
} else {
fmt.Println("It seems that you don't have 'hugo' on your PATH.\nAborting...")
os.Exit(0)
}
for c.Next() {
args := c.RemainingArgs()