Skip to content

Get-SshPath returning empty path for id_rsa #268

@motowilliams

Description

@motowilliams

Get-SshPath

join-path doesn't seem to like concatenating the paths for $home & '.ssh\$File' as it errors on the wrapped Resolve-Path with can't find the path ...\.ssh\$File. Dropping down to .NET fixes this Resolve-Path ([io.path]::combine($home, '.ssh', $File))

Powershell Version

> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10586  63

Windows Version

> [environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      10586  0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions