mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-31 21:22:27 +00:00
15 lines
368 B
Diff
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 == "" {
|