This commit is contained in:
Gokcehan committed 2021-04-13 23:29:26 +03:00
1 parent fec767d11b
commit c8f60623f3
11 files changed
+30 -21

No files matched your search

+4 -4
View File
@@ -174,11 +174,11 @@ func (app *app) loop() {
}()
}
if gCustomConfig != "" {
if _, err := os.Stat(gCustomConfig); !os.IsNotExist(err) {
app.readFile(gCustomConfig)
if gConfigPath != "" {
if _, err := os.Stat(gConfigPath); !os.IsNotExist(err) {
app.readFile(gConfigPath)
} else {
log.Printf("Config file does not exist: %s", err)
log.Printf("config file does not exist: %s", err)
}
} else {
for _, path := range gConfigPaths {