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() {
 | 
			
		||||
    if (!existDefaultPublicKey() || existDefaultPrivateKey()) {
 | 
			
		||||
        // if public or private key exists, stop
 | 
			
		||||
    if (existDefaultPublicKey() && existDefaultPrivateKey()) {
 | 
			
		||||
        // if both public and private key exists, stop
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user