From 9680c024b9eb066c6db8b281e8386079a84f11b5 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 21 Dec 2025 18:40:48 +0200 Subject: [PATCH] Rename config.yaml to config.yml --- config/{config.yaml => config.yml} | 0 src/config.go | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename config/{config.yaml => config.yml} (100%) diff --git a/config/config.yaml b/config/config.yml similarity index 100% rename from config/config.yaml rename to config/config.yml diff --git a/src/config.go b/src/config.go index adaf6b5..b2a89c9 100644 --- a/src/config.go +++ b/src/config.go @@ -26,10 +26,10 @@ func readConfig() { userConfigDir, _ := os.UserConfigDir() // Find valid config directory - if _, err := os.Stat(path.Join(userConfigDir, "stormfetch/config.yaml")); err == nil { - configPath = path.Join(userConfigDir, "stormfetch/config.yaml") - } else if _, err := os.Stat(path.Join(SystemConfigDir, "stormfetch/config.yaml")); err == nil { - configPath = path.Join(SystemConfigDir, "stormfetch/config.yaml") + if _, err := os.Stat(path.Join(userConfigDir, "stormfetch/config.yml")); err == nil { + configPath = path.Join(userConfigDir, "stormfetch/config.yml") + } else if _, err := os.Stat(path.Join(SystemConfigDir, "stormfetch/config.yml")); err == nil { + configPath = path.Join(SystemConfigDir, "stormfetch/config.yml") } else { log.Fatalf("Config file not found: %s", err.Error()) }