mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 20:15:49 +00:00
Use flagChanged in all places
This commit is contained in:
1 parent
c1f8b188f7
commit
1f61f40328
1 file changed
+1
-1
+1
-1
@@ -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