mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add configFile(s) back to the watch list after RENAME event too
Alleviates #5205
This commit is contained in:
parent
55251aa890
commit
e3cb8e6c78
1 changed files with 1 additions and 1 deletions
|
@ -764,7 +764,7 @@ func (c *commandeer) handleEvents(watcher *watcher.Batcher,
|
||||||
if ev.Op&fsnotify.Chmod == fsnotify.Chmod {
|
if ev.Op&fsnotify.Chmod == fsnotify.Chmod {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if ev.Op&fsnotify.Remove == fsnotify.Remove {
|
if ev.Op&fsnotify.Remove == fsnotify.Remove || ev.Op&fsnotify.Rename == fsnotify.Rename {
|
||||||
for _, configFile := range c.configFiles {
|
for _, configFile := range c.configFiles {
|
||||||
counter := 0
|
counter := 0
|
||||||
for watcher.Add(configFile) != nil {
|
for watcher.Add(configFile) != nil {
|
||||||
|
|
Loading…
Reference in a new issue