fix: if both public and private key exists, stop creating new ssh key
This commit is contained in:
		@@ -90,8 +90,8 @@ export function getDefaultPrivateKey(): string {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function createSSHKey() {
 | 
					export function createSSHKey() {
 | 
				
			||||||
    if (!existDefaultPublicKey() || existDefaultPrivateKey()) {
 | 
					    if (existDefaultPublicKey() && existDefaultPrivateKey()) {
 | 
				
			||||||
        // if public or private key exists, stop
 | 
					        // if both public and private key exists, stop
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user