diff --git a/app.go b/app.go index 9a4c76e..d47e467 100644 --- a/app.go +++ b/app.go @@ -230,11 +230,13 @@ func (a *App) SanityCheck() error { onlineDestinations++ for _, src := range a.sources { dest2 := dest.Append("/" + src.Box() + "/" + src.Path()) - for _, s := range b.zfs.filesystems[dest2.Path()].snapshots { - if !s.Valid() { - if err := s.Delete(); err != nil { - log.WithFields(log.Fields{"app": a.name, "box": src.Box(), "snapshot": s.String(), "call": "Delete", "error": err}).Errorf("") - return err + if fs, ok := b.zfs.filesystems[dest2.Path()]; ok { + for _, s := range fs.snapshots { + if !s.Valid() { + if err := s.Delete(); err != nil { + log.WithFields(log.Fields{"app": a.name, "box": src.Box(), "snapshot": s.String(), "call": "Delete", "error": err}).Errorf("") + return err + } } } } diff --git a/version.go b/version.go index ca8bedf..0888b02 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "db05789" +var githash = "e07c1c4" var branch = "v2" -var buildstamp = "2023-07-01_12:10:14" -var commits = "64" -var version = "db05789-b64 - 2023-07-01_12:10:14" +var buildstamp = "2023-07-01_20:33:58" +var commits = "65" +var version = "e07c1c4-b65 - 2023-07-01_20:33:58"