stop installing hugo. ask the user to do it
This commit is contained in:
1 parent
f878cc3040
commit
629d2092a1
4 files changed
+7
-194
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user