Skip to content

Commit

Permalink
fix app overwrites path to prod.keys silently (#45)
Browse files Browse the repository at this point in the history
fixes #43
  • Loading branch information
lubioa authored Jul 26, 2024
1 parent 2217b39 commit a48a1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func InitSwitchKeys(baseFolder string) (*switchKeys, error) {
}
settings := ReadSettings(baseFolder)
if err != nil {
path := settings.Prodkeys
if path != "" {
if settings.Prodkeys != "" {
path = settings.Prodkeys
p, err = properties.LoadFile(filepath.Join(path, "prod.keys"), properties.UTF8)
}
}
Expand Down

0 comments on commit a48a1da

Please sign in to comment.