From a5e5f727bf7b98996dd2c6817f3344036fa813f4 Mon Sep 17 00:00:00 2001 From: Thomas Evensen <thomeven@gmail.com> Date: Wed, 14 Aug 2024 19:57:39 +0200 Subject: [PATCH] update --- Sources/SSHCreateKey/SSHCreateKey.swift | 2 +- Tests/SSHCreateKeyTests/SSHCreateKeyTests.swift | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/SSHCreateKey/SSHCreateKey.swift b/Sources/SSHCreateKey/SSHCreateKey.swift index e2fee46..8c2f845 100644 --- a/Sources/SSHCreateKey/SSHCreateKey.swift +++ b/Sources/SSHCreateKey/SSHCreateKey.swift @@ -160,7 +160,7 @@ public final class SSHCreateKey { args.append("-p") args.append(sharedsshport) } else { - args.append(identityfile ?? "") + args.append(sshkeypathandidentityfile ?? "") } args.append(offsiteUsername + "@" + offsiteServer) return args.joined(separator: " ") diff --git a/Tests/SSHCreateKeyTests/SSHCreateKeyTests.swift b/Tests/SSHCreateKeyTests/SSHCreateKeyTests.swift index f447f39..70f9b46 100644 --- a/Tests/SSHCreateKeyTests/SSHCreateKeyTests.swift +++ b/Tests/SSHCreateKeyTests/SSHCreateKeyTests.swift @@ -21,6 +21,8 @@ import Testing print(arg5 ?? "") let arg6 = await sshcreatekey.sshkeypathandidentityfile print(arg6 ?? "") + let arg7 = await sshcreatekey.argumentssshcopyid(offsiteServer: "raspberrypi", offsiteUsername: "thomas") + print(arg7) } } @@ -43,6 +45,8 @@ import Testing print(arg5 ?? "") let arg6 = await sshcreatekey.sshkeypathandidentityfile print(arg6 ?? "") + let arg7 = await sshcreatekey.argumentssshcopyid(offsiteServer: "raspberrypi", offsiteUsername: "thomas") + print(arg7) } } -- GitLab