Fix: Add newline to end-of-file

to prevent breaking the file on next host being added

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-01-31 15:56:25 +01:00
parent d81f441bc2
commit 276cef8014
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -64,6 +64,7 @@ def write_hosts_file(knownhosts):
with open(KNOWN_HOSTS, 'w') as f:
f.write('\n'.join(sorted(lines)))
f.write('\n')
def main():