BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Added .gitattributes Optimized AbsPath()
Jack7b1e569e06cd
diff --git a/.gitattributes b/.gitattributesnew file mode 100644index 00000000..45fe3367--- /dev/null+++ b/.gitattributes@@ -0,0 +1,3 @@+conf/* merge=ours+Dockerfiles/* merge=ours+ssl-self-signed/* merge=ours\ No newline at end of filediff --git a/core/internal/service/public/common.go b/core/internal/service/public/common.goindex 486d1aa5..86edff7d 100644--- a/core/internal/service/public/common.go+++ b/core/internal/service/public/common.go@@ -600,7 +600,9 @@ func GetCwdPath() string {}// Get absolute path-func AbsPath(p string) string {+func AbsPath(ps ...string) string {+ p := filepath.Join(ps...)+// In Linux, if the path starts with "/", it is an absolute pathif strings.HasPrefix(p, "/") {return p