mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
Use flagChanged in all places
This commit is contained in:
@@ -101,7 +101,7 @@ func server(cmd *cobra.Command, args []string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if cmd.Flags().Lookup("disableLiveReload").Changed {
|
if flagChanged(cmd.Flags(), "disableLiveReload") {
|
||||||
viper.Set("DisableLiveReload", disableLiveReload)
|
viper.Set("DisableLiveReload", disableLiveReload)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user