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:
parent
d81f441bc2
commit
276cef8014
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ def write_hosts_file(knownhosts):
|
||||||
|
|
||||||
with open(KNOWN_HOSTS, 'w') as f:
|
with open(KNOWN_HOSTS, 'w') as f:
|
||||||
f.write('\n'.join(sorted(lines)))
|
f.write('\n'.join(sorted(lines)))
|
||||||
|
f.write('\n')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue