Skip to content

Commit

Permalink
Merge pull request #556 from php-coder/fix_assemble-runtime-path-in-i…
Browse files Browse the repository at this point in the history
…mage

Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Jul 28, 2016
2 parents 3632461 + 298937f commit 724c0dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/build/strategies/sti/postexecutorstep.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (step *startRuntimeImageAndUploadFilesStep) execute(ctx *postExecutorStepCo
return fmt.Errorf("Couldn't get working dir of %q image: %v", image, err)
}

commandBaseDir := workDir
commandBaseDir := filepath.Join(workDir, "scripts")
useExternalAssembleScript := step.builder.externalScripts[api.AssembleRuntime]
if !useExternalAssembleScript {
// script already inside of the image
Expand All @@ -265,7 +265,7 @@ func (step *startRuntimeImageAndUploadFilesStep) execute(ctx *postExecutorStepCo
}

cmd := fmt.Sprintf(
"while [ ! -f %q ]; do sleep 0.5; done; %s/scripts/%s; exit $?",
"while [ ! -f %q ]; do sleep 0.5; done; %s/%s; exit $?",
lastFileDstPath,
commandBaseDir,
api.AssembleRuntime,
Expand Down

0 comments on commit 724c0dd

Please sign in to comment.