Update Add-SshKey function in Windows and Linux

This commit is contained in:
2020-07-14 20:52:45 +01:00
parent 4f7c28ffe6
commit 1f10d5cbe5
2 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
# Add a SSH key to SSH-Agent
function Add-Key {
function Add-SshKey {
if ($args.Count -gt 0) {
$filename = "$ENV:USERPROFILE\.ssh\id_ed25519_" + $args[0]
if (!(Test-Path $filename -PathType Leaf)) {