Fixed logical mistakes in public key insertion mechanism

pull/2/head
Illia Chub 2021-08-25 08:07:02 +03:00
parent 18d8d78f0d
commit e7edbe2669
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ def readKey():
if "openssh.authorizedKeys.keys = [" in line:
print("[DEBUG] Found SSH key configuration snippet match!")
print("[INFO] Writing new SSH key", sep="")
fileContent.insert(index, "\n \"" + publicKey + "\"")
fileContent.append(index, "\n \"" + publicKey + "\"")
print("done")
break