Skip to content

Commit 2fabb95

Browse files
committed
version v0.11.3
1 parent 03008c4 commit 2fabb95

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/ffind/ffind.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func Find(sysroot, archive, algo string, rp, so, uo bool) (lines []string) {
4040
uo: uo,
4141
}
4242

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

9999
for artifact := range in {
100100
if len(ff.archive) > 0 {
101-
if z == nil {
102-
z, err = zip.NewZip(ff.archive, time.Now().Format(time.RFC3339))
101+
if z == nil { // init once
102+
meta := time.Now().Format(time.RFC3339)
103+
104+
z, err = zip.NewZip(ff.archive, meta)
103105

104106
if err != nil {
105107
sys.Fatal(err)

0 commit comments

Comments
 (0)