mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 16:20:28 +00:00
4891e534d3
`bash -E` causes inheritance of the ERR trap into shell functions, command substitutions, and commands executed in a subshell environment. Because the `kubectl_retry` function depends on detection an error of a subshell, the ERR trap is not needed to be executed. The trap contains extra logging, and exits the script in the `rook.sh` case. The aborting of the script is not wanted when a retry is expected to be done. While checking for known failures, the `grep` command may exit with 1, if there are no matches. That means, the `ret` variable will be set to 0, but there will also be an error exit status. This causes `bash -E` to abort the function, and call the ERR trap. Signed-off-by: Niels de Vos <ndevos@redhat.com> |
||
---|---|---|
.. | ||
k8s-storage | ||
build_step.inc.sh | ||
build-multi-arch-image.sh | ||
check-env.sh | ||
codespell.conf | ||
Dockerfile.devel | ||
Dockerfile.test | ||
golangci.yml.in | ||
install-helm.sh | ||
install-snapshot.sh | ||
lint-extras.sh | ||
lint-go.sh | ||
mdl-style.rb | ||
minikube.sh | ||
psp.yaml | ||
rook.sh | ||
skip-doc-change.sh | ||
snapshot-controller-psp.yaml | ||
test-go.sh | ||
travis-functest.sh | ||
travis-helmtest.sh | ||
utils.sh |