You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
stop installing hugo. ask the user to do it
This commit is contained in:
8
setup.go
8
setup.go
@@ -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