From 236c034c62982d5f245914e76664078f1c18048c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 24 Aug 2022 12:14:56 +0800 Subject: [PATCH] Fix unix search path --- constant/path_unix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/constant/path_unix.go b/constant/path_unix.go index b4f561cd..5d9a201d 100644 --- a/constant/path_unix.go +++ b/constant/path_unix.go @@ -1,4 +1,4 @@ -//go:build unix +//go:build unix || linux package constant @@ -7,9 +7,9 @@ import ( ) func init() { - resourcePaths = append(resourcePaths, "/etc/config") + resourcePaths = append(resourcePaths, "/etc") resourcePaths = append(resourcePaths, "/usr/share") - resourcePaths = append(resourcePaths, "/usr/local/etc/config") + resourcePaths = append(resourcePaths, "/usr/local/etc") resourcePaths = append(resourcePaths, "/usr/local/share") if homeDir := os.Getenv("HOME"); homeDir != "" { resourcePaths = append(resourcePaths, homeDir+"/.local/share")