Skip to content

Commit

Permalink
safer than chaos
Browse files Browse the repository at this point in the history
Co-authored-by: Helio Machado <[email protected]>
  • Loading branch information
casperdcl and 0x2b3bfa0 authored Sep 3, 2021
1 parent fb82963 commit a536f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ ENV IN_DOCKER=1
# also works for GitLab CI/CD
# https://gitlab.com/gitlab-org/gitlab-runner/-/blob/4c42e96/shells/bash.go#L18-37
# https://gitlab.com/gitlab-org/gitlab-runner/-/blob/4c42e96/shells/bash.go#L288
ENTRYPOINT ["/bin/bash", "-c", "basename -- \"$0\" | grep -qE '^(b?a|z|fi|t?c)?sh$' && exec \"$0\" \"$@\" || exec cml \"$0\" \"$@\""]
ENTRYPOINT ["/bin/bash", "-c", "which -- \"$0\" &>/dev/null && exec \"$0\" \"$@\" || exec cml \"$0\" \"$@\""]
CMD ["--help"]

0 comments on commit a536f07

Please sign in to comment.