1
0

Fix check for installed kernels

This commit is contained in:
2023-03-22 18:05:13 +00:00
parent 3e9410bf09
commit 0f1bdc795d
2 changed files with 23 additions and 15 deletions

2
pew.go
View File

@ -679,8 +679,10 @@ func performCI(ka config.Artifact, kcfg config.KernelConfig, binaryPath,
func exists(path string) bool {
if _, err := os.Stat(path); err != nil {
log.Debug().Msgf("%s does not exist", path)
return false
}
log.Debug().Msgf("%s exist", path)
return true
}