fix: properly parse releease command when there is an entrypoint

Closes #4232
This commit is contained in:
Jose Diaz-Gonzalez
2020-12-11 11:44:13 -05:00
parent 775432c73f
commit 26b95854d4
3 changed files with 15 additions and 14 deletions

View File

@@ -25,7 +25,12 @@ type AppJSON struct {
func constructScript(command string, shell string, isHerokuishImage bool, hasEntrypoint bool) []string {
if hasEntrypoint {
return []string{command}
words, err := shellquote.Split(strings.TrimSpace(command))
if err != nil {
common.LogWarn(fmt.Sprintf("Skiiping command construction for app with ENTRYPOINT: %v", err.Error()))
return nil
}
return words
}
script := []string{"set -eo pipefail;"}