0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-31 21:22:27 +00:00
termux-packages/packages/navidrome/conf-configuration.go.patch
2024-12-22 15:49:51 +05:30

15 lines
368 B
Diff

--- a/conf/configuration.go
+++ b/conf/configuration.go
@@ -199,9 +199,11 @@
}
err = os.MkdirAll(Server.CacheFolder, os.ModePerm)
if err != nil {
+ if os.IsExist(err) == false {
_, _ = fmt.Fprintln(os.Stderr, "FATAL: Error creating cache path:", err)
os.Exit(1)
}
+ }
Server.ConfigFile = viper.GetViper().ConfigFileUsed()
if Server.DbPath == "" {