Skip dirs in copyArtifactSetRole and replace only basename

otherwise we get the error:

```
panic: open /efi/EFI/kairos/passive.efi.extra.d: is a directory
```

and we may replace parts of the path that we shouldn't.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis
2024-06-18 14:03:25 +03:00
parent fd2f83dc55
commit 046f6879ff
3 changed files with 95 additions and 4 deletions

13
pkg/uki/suite_test.go Normal file
View File

@@ -0,0 +1,13 @@
package uki_test
import (
"testing"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
func TestActionSuite(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Uki test suite")
}