From 72d56f6fc235f8e78852b806b049d7e4a77212b6 Mon Sep 17 00:00:00 2001 From: Wendell Sun Date: Fri, 20 Aug 2021 18:19:59 +0800 Subject: [PATCH] handle the case that store path is symbolic link dir --- cmd/skm/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/skm/main.go b/cmd/skm/main.go index 563eec2..ea92dae 100644 --- a/cmd/skm/main.go +++ b/cmd/skm/main.go @@ -21,6 +21,9 @@ func init() { if envStorePath := os.Getenv("SKM_STORE_PATH"); envStorePath != "" { defaultStorePath = envStorePath } + if d, err := os.Readlink(defaultStorePath); err == nil { + defaultStorePath = d + } } func main() {