diff --git a/lifecam.go b/lifecam.go index b47edc5..1e584ce 100644 --- a/lifecam.go +++ b/lifecam.go @@ -58,12 +58,14 @@ func main() { for _, fl := range frameMap { pkg, err := fl.Package() die.If(err) + + path, err := pkg.Frames.Name() + die.If(err) + err = lifecam.PackageZip(pkg, *clean) die.If(err) if *upload { - path, err := pkg.Frames.Name() - die.If(err) n, err := minio.Upload(path, lifecam.MimeZip) die.If(err) log.Printf("uploaded %s [%d bytes]", path, n)