fix: script path
This commit is contained in:
		| @@ -5,6 +5,7 @@ import ( | |||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"io" | 	"io" | ||||||
| 	"os" | 	"os" | ||||||
|  | 	"path/filepath" | ||||||
| 	"regexp" | 	"regexp" | ||||||
| 	"strings" | 	"strings" | ||||||
| 	"time" | 	"time" | ||||||
| @@ -323,6 +324,7 @@ func (ka Artifact) Process(slog zerolog.Logger, ki distro.KernelInfo, | |||||||
| 	if ka.Type == Script { | 	if ka.Type == Script { | ||||||
| 		result.BuildDir = ka.SourcePath | 		result.BuildDir = ka.SourcePath | ||||||
| 		result.Build.Ok = true | 		result.Build.Ok = true | ||||||
|  | 		ka.Script = filepath.Join(ka.SourcePath, ka.Script) | ||||||
| 		cTest = ka.Script | 		cTest = ka.Script | ||||||
| 	} else if cBinary == "" { | 	} else if cBinary == "" { | ||||||
| 		// TODO: build should return structure | 		// TODO: build should return structure | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user