tcardonne / docker-github-runner

Run GitHub Actions on self-hosted runner using Docker.
MIT License
297 stars 124 forks source link

entrypoint.sh question #21

Closed jpmolinamatute closed 4 years ago

jpmolinamatute commented 4 years ago

Hello there!

I just ran a linter in this script a fixed a couple of very small "warning", I also did a small improvement and I'm about to make a PR for them. However, I have a question

what's the idea behind these three lines

if [[ $1 == "bash" ]]; then
    exec "$@"
fi
tcardonne commented 4 years ago

Hello,

This is purely a helper for debugging purposes. It allows to bypass the entrypoint more easily than providing the --entrypoint option, in my opinion.

jpmolinamatute commented 4 years ago

cool! thanks!