mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix related to spf13/hugo#1852 - build is going to fail
This commit is contained in:
parent
c8c2d4e9b5
commit
6c0abf9fd6
@ -165,6 +165,7 @@ func ParseComponents(r *http.Request) []string {
|
|||||||
|
|
||||||
// Run is used to run the static website generator
|
// Run is used to run the static website generator
|
||||||
func Run(c *config.Config) {
|
func Run(c *config.Config) {
|
||||||
|
commands.MainSite = nil
|
||||||
c.Args = append([]string{"--source", c.Path}, c.Args...)
|
c.Args = append([]string{"--source", c.Path}, c.Args...)
|
||||||
commands.HugoCmd.ParseFlags(c.Args)
|
commands.HugoCmd.ParseFlags(c.Args)
|
||||||
if err := commands.HugoCmd.RunE(nil, nil); err != nil {
|
if err := commands.HugoCmd.RunE(nil, nil); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user