concourse / concourse-bosh-release

Concourse BOSH release
Apache License 2.0
28 stars 49 forks source link

Fix broken retry when backup with bbr #157

Closed alexnguyen91 closed 3 years ago

alexnguyen91 commented 3 years ago

@taylorsilva this is due to set -e and ((retry++)) not working well together

In the script tick initially set to 0, using ((tick++)) will increase tick to 1 but also return 1 as exit code and that will trigger set -e cause the script to exit and cleanup, thus make retry feature not working.