From 878e032fcb3e1b190452eca2ee88f20cd5cda269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Thu, 16 Jan 2020 12:53:44 +0100 Subject: [PATCH] remove onConfigChange as not supported on Alpine Linux --- main.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 0b0d52d..c02a9f5 100644 --- a/main.go +++ b/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"},