Skip to content

Commit

Permalink
error in default home logic
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlehane committed Jun 25, 2024
1 parent 32375bc commit 2ea5a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func defaultHome() string {
}
// if a home directory already exists in the legacy location continue using it
legacy_home := filepath.Join(user_home, "siegfried")
if _, err := os.Stat(siegfried.home); err == nil {
if _, err := os.Stat(legacy_home); err == nil {
return legacy_home
}
// check if XDG_DATA_DIRS exist
Expand Down

0 comments on commit 2ea5a98

Please sign in to comment.