mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-13 18:39:25 +00:00
Fix bitwarden file copy [stage]
This commit is contained in:
1 parent
d065f527d6
commit
cbbcc35c71
3 files changed
+3
-2
No files matched your search
@@ -92,7 +92,7 @@ public class BitwardenPasswordManager implements PasswordManager {
|
||||
var def = getDefaultConfigPath();
|
||||
if (Files.exists(def)) {
|
||||
try {
|
||||
var defIsNewer = Files.getLastModifiedTime(def).compareTo(Files.getLastModifiedTime(cacheDataFile)) > 0;
|
||||
var defIsNewer = !Files.exists(cacheDataFile) || Files.getLastModifiedTime(def).compareTo(Files.getLastModifiedTime(cacheDataFile)) > 0;
|
||||
if (defIsNewer) {
|
||||
Files.copy(def, cacheDataFile, StandardCopyOption.REPLACE_EXISTING);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user