Skip to content

Commit

Permalink
version v0.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cuhsat committed May 18, 2024
1 parent 03008c4 commit 2fabb95
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/ffind/ffind.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Find(sysroot, archive, algo string, rp, so, uo bool) (lines []string) {
uo: uo,
}

// Go into live mode?
// Go into live mode
if len(ff.sysroot)+len(ff.archive)+len(ff.algo) == 0 {
ff.live()
}
Expand Down Expand Up @@ -98,8 +98,10 @@ func (ff *ffind) zip(in <-chan string, out chan<- string) {

for artifact := range in {
if len(ff.archive) > 0 {
if z == nil {
z, err = zip.NewZip(ff.archive, time.Now().Format(time.RFC3339))
if z == nil { // init once
meta := time.Now().Format(time.RFC3339)

z, err = zip.NewZip(ff.archive, meta)

if err != nil {
sys.Fatal(err)
Expand Down

0 comments on commit 2fabb95

Please sign in to comment.