mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 08:16:54 +00:00
Make sure key files end with a new line
This commit is contained in:
parent
8080f183d6
commit
1db4ba52f9
1 changed files with 1 additions and 0 deletions
|
@ -274,6 +274,7 @@ def save(self, path, passphrase):
|
|||
with open(path, 'w') as fd:
|
||||
fd.write('%s %s\n' % (self.FILE_ID, hexlify(self.repository_id).decode('ascii')))
|
||||
fd.write('\n'.join(textwrap.wrap(b2a_base64(data).decode('ascii'))))
|
||||
fd.write('\n')
|
||||
self.path = path
|
||||
|
||||
def change_passphrase(self):
|
||||
|
|
Loading…
Reference in a new issue