diff --git a/webp-server.go b/webp-server.go index 0a0fcf4..73a9170 100644 --- a/webp-server.go +++ b/webp-server.go @@ -80,6 +80,16 @@ func init() { } func main() { + // process cli params + if dumpConfig { + fmt.Println(sampleConfig) + os.Exit(0) + } + if dumpSystemd { + fmt.Println(sampleSystemd) + os.Exit(0) + } + go autoUpdate() config := loadConfig(configPath) @@ -95,16 +105,6 @@ func main() { ExhaustPath = config.ExhaustPath } - // process cli params - if dumpConfig { - fmt.Println(sampleConfig) - os.Exit(0) - } - if dumpSystemd { - fmt.Println(sampleSystemd) - os.Exit(0) - } - if prefetch { go PrefetchImages(confImgPath, ExhaustPath, QUALITY) }