concourse / concourse-docker

Offical concourse/concourse Docker image.
Apache License 2.0
241 stars 153 forks source link

Add the case when someone is using quickstart #82

Closed taylorsilva closed 2 years ago

taylorsilva commented 2 years ago

From: https://github.com/concourse/concourse-docker/issues/76#issuecomment-1112730702

if someone is using the quickstart command then env vars have_WORKER_ or _WEB_ added to their names. This means the fix from #77 doesn't work with the quickstart command. This PR adds that check.

I'm not sh expert but based on my testing this should work. Simple example:

$ false || echo foo && echo bar
foo
bar
$ true || echo foo && echo bar
bar