Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error handling in
tkn_bundle_push
When `tkn bundle push` exits with code not equal to 0, due to `errexit` being turned on (`set -e`) the script is terminated immediately without retrying. This changes the logic so if the `tkn bundle push` succeeds the retying while loop is stopped, i.e. the `&& break` branch is executed. In case of errors the `&& break` branch is not executed and the status of `tkn bundle push` is captured in the `status` variable, the retrying `while` loop continues until `max_retries` is reached.
- Loading branch information