diff --git a/src/utils.ts b/src/utils.ts index 74ea736..27fa77b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -90,8 +90,8 @@ export function getDefaultPrivateKey(): string { } export function createSSHKey() { - if (!existDefaultPublicKey() || existDefaultPrivateKey()) { - // if public or private key exists, stop + if (existDefaultPublicKey() && existDefaultPrivateKey()) { + // if both public and private key exists, stop return; }