Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fixing engine base.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jul 29, 2017
1 parent 9a04f8e commit c18849f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/engine/engine_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"github.com/Masterminds/semver"
"capsulecd/pkg/utils"
"path"
"capsulecd/pkg/pipeline"
)

Expand Down Expand Up @@ -121,9 +120,9 @@ func (e *engineBase) ExecuteCmdList(configKey string, workingDir string, environ
if cmdList == nil {
return nil
}
for cmdEntry := range cmdList {
if terr := utils.BashCmdExec(cmdEntry, workingDir, environ, logPrefix); terr != nil {
return errors.EngineTestRunnerError(fmt.Sprintf(errorTemplate, cmdEntry))
for i := range cmdList {
if terr := utils.BashCmdExec(cmdList[i], workingDir, environ, logPrefix); terr != nil {
return errors.EngineTestRunnerError(fmt.Sprintf(errorTemplate, cmdList[i]))
}
}
}
Expand Down

0 comments on commit c18849f

Please sign in to comment.