remove onConfigChange as not supported on Alpine Linux
This commit is contained in:
11
main.go
11
main.go
@@ -11,7 +11,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/chromedp/chromedp"
|
||||
"github.com/fsnotify/fsnotify"
|
||||
"github.com/lunny/html2md"
|
||||
"github.com/robfig/cron/v3"
|
||||
"github.com/spf13/viper"
|
||||
@@ -61,10 +60,12 @@ login:
|
||||
// Config file was found but another error was produced
|
||||
}
|
||||
}
|
||||
viper.WatchConfig()
|
||||
viper.OnConfigChange(func(e fsnotify.Event) {
|
||||
fmt.Println("Config file changed:", e.Name)
|
||||
})
|
||||
|
||||
// This does not work on Alpine Linux ... maybe under other linux variations
|
||||
//viper.WatchConfig()
|
||||
//viper.OnConfigChange(func(e fsnotify.Event) {
|
||||
// fmt.Println("Config file changed:", e.Name)
|
||||
//})
|
||||
|
||||
html2md.AddRule("span", &html2md.Rule{
|
||||
Patterns: []string{"span"},
|
||||
|
||||
Reference in New Issue
Block a user