Skip to content

Commit

Permalink
[FIX] Fix script path
Browse files Browse the repository at this point in the history
  • Loading branch information
bouskaJ committed Apr 23, 2020
1 parent 716e14a commit 9522fd4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,15 +529,7 @@ func isDir(fileName string) bool {
func runSteps(steps []config.StepConfig, namespace, baseDir string) error {
for idx, step := range steps {
if len(step.Script) > 0 {
var scriptFile string

if len(baseDir) > 0 && !path.IsAbs(step.Script) {
scriptFile = path.Join(baseDir, step.Script)
} else {
scriptFile = step.Script
}

if err := runScript(scriptFile, fmt.Sprintf("script %s", scriptFile), namespace, baseDir); err != nil {
if err := runScript(step.Script, fmt.Sprintf("script %s", step.Script), namespace, baseDir); err != nil {
return err
}
}
Expand Down

0 comments on commit 9522fd4

Please sign in to comment.