Merge pull request #11740 from amenonsen/8602-rebase
Encrypt the vault file after editing only if the contents changed
This commit is contained in:
commit
2575e1540a
1 changed files with 4 additions and 0 deletions
|
@ -227,6 +227,10 @@ class VaultEditor(object):
|
|||
call(self._editor_shell_command(tmp_path))
|
||||
tmpdata = self.read_data(tmp_path)
|
||||
|
||||
# Do nothing if the content has not changed
|
||||
if existing_data == tmpdata:
|
||||
return
|
||||
|
||||
# create new vault
|
||||
this_vault = VaultLib(self.password)
|
||||
if cipher:
|
||||
|
|
Loading…
Reference in a new issue