diff --git a/scripts/deploy-pattern.sh b/scripts/deploy-pattern.sh index 7393d9b6..56837366 100755 --- a/scripts/deploy-pattern.sh +++ b/scripts/deploy-pattern.sh @@ -7,8 +7,8 @@ echo -n "Installing pattern: " for i in $(seq 1 ${RUNS}); do \ exec 3>&1 4>&2 OUT=$( { helm template --include-crds --name-template $* 2>&4 | oc apply -f- 2>&4 1>&3; } 4>&1 3>&1) - exec 3>&- 4>&- ret=$? + exec 3>&- 4>&- if [ ${ret} -eq 0 ]; then break; else