mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix bugs
This commit is contained in:
parent
629d2092a1
commit
9fd56bbb92
5
setup.go
5
setup.go
@ -6,6 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
@ -143,8 +144,8 @@ func parse(c *caddy.Controller, root string) (*Config, error) {
|
|||||||
Root: "./",
|
Root: "./",
|
||||||
}
|
}
|
||||||
|
|
||||||
if hugo, err = exec.LookPath("hugo"); err == nil {
|
if hugo, err := exec.LookPath("hugo"); err == nil {
|
||||||
conf.Hugo = hugo;
|
conf.Hugo = hugo
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("It seems that you don't have 'hugo' on your PATH.\nAborting...")
|
fmt.Println("It seems that you don't have 'hugo' on your PATH.\nAborting...")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user