Skip to content

Commit

Permalink
Fix apache#1333: fix command execution
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Mar 19, 2020
1 parent 290a041 commit 1fef479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/test_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,8 @@ func userCleanup() {
userCmd := os.Getenv("KAMEL_TEST_CLEANUP")
if userCmd != "" {
fmt.Printf("Executing user cleanup command: %s\n", userCmd)
command := exec.Command(userCmd)
cmdSplit := strings.Split(userCmd, " ")
command := exec.Command(cmdSplit[0], cmdSplit[1:]...)
command.Stderr = os.Stderr
command.Stdout = os.Stdout
if err := command.Run(); err != nil {
Expand Down

0 comments on commit 1fef479

Please sign in to comment.