1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-18 17:10:04 +00:00

lib/Sync.rb

This commit is contained in:
nishiki 2015-03-19 23:17:01 +01:00
parent b5230f2cfe
commit 724fc1752a

View file

@ -121,9 +121,9 @@ module MPW
raise @local.error_msg if not @local.add(item) raise @local.error_msg if not @local.add(item)
end end
end end
raise @sync.error_msg if not @sync.update(@config.file_gpg)
raise @mpw.error_msg if not @local.encrypt raise @mpw.error_msg if not @local.encrypt
raise @sync.error_msg if not @sync.update(@config.file_gpg)
return true return true
rescue Exception => e rescue Exception => e