Skip to content

Commit

Permalink
version 0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cuhsat committed May 18, 2024
1 parent e98aa5f commit 03008c4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/ffind/ffind.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import (
)

const (
rLimit = 1024
liveZip = "fact"
liveExt = ".zip"
rLimit = 1024
)

type ffind struct {
Expand Down Expand Up @@ -143,13 +145,12 @@ func (ff *ffind) live() {
host, err := os.Hostname()

if err != nil {
host = "fact" // fallback
sys.Error(err)

host = liveZip // fallback
}

ff.archive = host + ".zip"
ff.algo = hash.SHA256
// TODO: add file for hash output
ff.archive = host + liveExt
}

func (ff *ffind) path(f string) string {
Expand Down

0 comments on commit 03008c4

Please sign in to comment.