Skip to content

Commit

Permalink
Merge pull request validatedpatterns#612 from mbaldessari/fix-issue
Browse files Browse the repository at this point in the history
Record the exit code at the right time
  • Loading branch information
darkdoc authored Oct 22, 2024
2 parents fd3330d + c9f1fdd commit cacdd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy-pattern.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cacdd23

Please sign in to comment.