Skip to content

Commit 9680c02

Browse files
committed
Rename config.yaml to config.yml
1 parent 13cd6f1 commit 9680c02

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

File renamed without changes.

src/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ func readConfig() {
2626
userConfigDir, _ := os.UserConfigDir()
2727

2828
// Find valid config directory
29-
if _, err := os.Stat(path.Join(userConfigDir, "stormfetch/config.yaml")); err == nil {
30-
configPath = path.Join(userConfigDir, "stormfetch/config.yaml")
31-
} else if _, err := os.Stat(path.Join(SystemConfigDir, "stormfetch/config.yaml")); err == nil {
32-
configPath = path.Join(SystemConfigDir, "stormfetch/config.yaml")
29+
if _, err := os.Stat(path.Join(userConfigDir, "stormfetch/config.yml")); err == nil {
30+
configPath = path.Join(userConfigDir, "stormfetch/config.yml")
31+
} else if _, err := os.Stat(path.Join(SystemConfigDir, "stormfetch/config.yml")); err == nil {
32+
configPath = path.Join(SystemConfigDir, "stormfetch/config.yml")
3333
} else {
3434
log.Fatalf("Config file not found: %s", err.Error())
3535
}

0 commit comments

Comments
 (0)