Skip to content

Commit

Permalink
check for empty path
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Lau <[email protected]>
  • Loading branch information
JoelLau committed Nov 9, 2024
1 parent bcc3b44 commit 37705a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/crypto/age/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (a *Age) getSSHIdentities(ctx context.Context) (map[string]age.Identity, er
func getSSHDir() (string, error) {
preferredPath := os.Getenv("GOPASS_SSH_DIR")
sshDir := filepath.Join(preferredPath, ".ssh")
if fsutil.IsDir(sshDir) {
if preferredPath != "" && fsutil.IsDir(sshDir) {
return preferredPath, nil
}

Expand Down

0 comments on commit 37705a5

Please sign in to comment.