Skip to content

Commit

Permalink
Merge pull request #35 from xwjdsh/master
Browse files Browse the repository at this point in the history
handle the case that store path is symbolic link dir
  • Loading branch information
TimothyYe committed Aug 20, 2021
2 parents e14f675 + 72d56f6 commit 636cc02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/skm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 636cc02

Please sign in to comment.