mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Use flagChanged in all places
This commit is contained in:
parent
c1f8b188f7
commit
1f61f40328
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ func server(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if cmd.Flags().Lookup("disableLiveReload").Changed {
|
||||
if flagChanged(cmd.Flags(), "disableLiveReload") {
|
||||
viper.Set("DisableLiveReload", disableLiveReload)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue