feat(prebuild): make prebuild available as an external package.

Usefull for downstream repo.
This commit is contained in:
Alexandre Pujol 2023-05-06 13:01:07 +01:00
parent 538da05696
commit 913ac3131c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
13 changed files with 304 additions and 214 deletions

View file

@ -48,7 +48,7 @@ func aaLog(logger string, path string, profile string, anonymize bool) error {
case "auditd":
file, err = logs.GetAuditLogs(path)
case "systemd":
file, err = logs.GetJournalctlLogs(path, !util.InSlice(path, logs.LogFiles))
file, err = logs.GetJournalctlLogs(path, !slices.Contains(logs.LogFiles, path))
default:
err = fmt.Errorf("Logger %s not supported.", logger)
}