Skip to content

Commit

Permalink
Dont send test files to guest filesystem
Browse files Browse the repository at this point in the history
Signed-off-by: yaacov <[email protected]>
  • Loading branch information
yaacov authored and mnecas committed Sep 17, 2024
1 parent b6871c9 commit abc4e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt-v2v/pkg/customize/rhel.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func getScripts(directory string) ([]string, error) {

var scripts []string
for _, file := range files {
if !file.IsDir() && strings.HasSuffix(file.Name(), ".sh") {
if !file.IsDir() && strings.HasSuffix(file.Name(), ".sh") && !strings.HasPrefix(file.Name(), "test-") {
scriptPath := filepath.Join(directory, file.Name())
scripts = append(scripts, scriptPath)
}
Expand Down

0 comments on commit abc4e70

Please sign in to comment.