Skip to content

Commit

Permalink
handle the case that store path is symbolic link dir
Browse files Browse the repository at this point in the history
  • Loading branch information
xwjdsh committed Aug 20, 2021
1 parent e14f675 commit 72d56f6
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 72d56f6

Please sign in to comment.