]> Cypherpunks repositories - gocheese.git/commitdiff
Do not fail if met a file during -fsck v4.3.0
authorSergey Matveev <stargrave@stargrave.org>
Tue, 26 Aug 2025 08:26:01 +0000 (11:26 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 26 Aug 2025 08:26:01 +0000 (11:26 +0300)
integrity.go
main.go

index 15a04853462130bb2b6f994361ba7b4f21bbc500..070b01bd853ac96b1fa7676be2fe6928fdce7541 100644 (file)
@@ -118,6 +118,9 @@ func goodIntegrity() bool {
                log.Fatal(err)
        }
        for _, dir := range dirs {
+               if !dir.IsDir() {
+                       continue
+               }
                fd, err = os.Open(filepath.Join(Root, dir.Name()))
                if err != nil {
                        log.Fatal(err)
diff --git a/main.go b/main.go
index a9351c8d333e6b7047e002cd4d32592c7d82937b..a8435ff73d42adaf35d0f0058581e2b5b4c2d3b2 100644 (file)
--- a/main.go
+++ b/main.go
@@ -42,7 +42,7 @@ import (
 )
 
 const (
-       Version   = "4.2.0"
+       Version   = "4.3.0"
        UserAgent = "GoCheese/" + Version
 )