]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - main.go
.github: update upstream actions to latest version
[nsscash/nsscash.git] / main.go
diff --git a/main.go b/main.go
index 5248a77b8794b6ba8eccf6f46ca396053cae3471..7a7d8b0da8e6855b8545c609f6169184819db7ae 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,6 +1,6 @@
 // Main file for nsscash
 
-// Copyright (C) 2019-2020  Simon Ruderich
+// Copyright (C) 2019-2021  Simon Ruderich
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU Affero General Public License as published by
@@ -151,5 +151,9 @@ func mainConvert(typ, srcPath, dstPath string) error {
                return err
        }
 
-       return f.CloseAtomicallyReplace()
+       err = f.CloseAtomicallyReplace()
+       if err != nil {
+               return err
+       }
+       return syncPath(filepath.Dir(dstPath))
 }