mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
One more error fix in the server command
And some other small code clean-up. See #1502
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright © 2013-14 Steve Francia <spf@spf13.com>.
|
||||
// Copyright © 2013-2015 Steve Francia <spf@spf13.com>.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -94,7 +94,9 @@ func init() {
|
||||
}
|
||||
|
||||
func server(cmd *cobra.Command, args []string) error {
|
||||
InitializeConfig()
|
||||
if err := InitializeConfig(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if cmd.Flags().Lookup("disableLiveReload").Changed {
|
||||
viper.Set("DisableLiveReload", disableLiveReload)
|
||||
|
Reference in New Issue
Block a user