Get-SshPath changes broke Add-SshKey #92

Closed
wekempf opened this Issue Apr 4, 2013 · 1 comment

Comments

Projects
None yet
2 participants

wekempf commented Apr 4, 2013

The code in question uses single quotes (') where double quotes are needed ("). When single quotes are used in PowerShell variables aren't expanded. http://windowsitpro.com/blog/single-quotes-vs-double-quotes-powershell-whats-difference

This means '.ssh$File' quite literally means '.ssh$File' and not '.ssh\id_rsa' (or what ever value is specified in $File) as was obviously expected.

dahlbyk closed this in ad83dd6 Apr 4, 2013

Owner

dahlbyk commented Apr 4, 2013

Sigh, rookie mistake. Thanks for the report.

@codito codito added a commit to codito/posh-git that referenced this issue Jun 16, 2013

@dahlbyk @codito dahlbyk + codito Fix Get-SshPath
Fixes #92
6bc2da8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment