Skip to content

Commit

Permalink
Fix #934
Browse files Browse the repository at this point in the history
  • Loading branch information
mickvangelderen committed Jul 10, 2024
1 parent 1ae9a84 commit ee08590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dockerfile/dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func baseImageIndex(currentStage int, stages []instructions.Stage) int {
currentStageBaseName := strings.ToLower(stages[currentStage].BaseName)

for i, stage := range stages {
if i > currentStage {
if i >= currentStage {
break
}
if stage.Name == currentStageBaseName {
Expand Down

0 comments on commit ee08590

Please sign in to comment.