Skip to content

Commit

Permalink
fix logic;
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y committed Mar 18, 2024
1 parent 0e8ba49 commit d912d0c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -798,13 +798,13 @@ func handleFilesToBeMovedForDockerCompose(ctx context.Context, dockerManager *do

if len(cmdArgs) > 0 {
if len(entrypointArgs) > 0 {
cmdArgs = []string{"-c", concatenatedFilesToBeMovedAsStr + " && " + entryPointArgsAsStr + " && " + cmdArgsAsStr}
cmdArgs = []string{"-c", concatenatedFilesToBeMovedAsStr + " && " + entryPointArgsAsStr + " " + cmdArgsAsStr}
} else {
cmdArgs = []string{"-c", concatenatedFilesToBeMovedAsStr + " && " + cmdArgsAsStr}
}
} else {
if len(entrypointArgs) > 0 {
cmdArgs = []string{"-c", concatenatedFilesToBeMovedAsStr + " && " + entryPointArgsAsStr + " && " + cmdArgsAsStr}
cmdArgs = []string{"-c", concatenatedFilesToBeMovedAsStr + " && " + entryPointArgsAsStr}
} else {
// no entrypoint and no command; this shouldn't really happen
cmdArgs = []string{"-c", concatenatedFilesToBeMovedAsStr}
Expand Down

0 comments on commit d912d0c

Please sign in to comment.