Skip to content

Commit

Permalink
retry using pure bash
Browse files Browse the repository at this point in the history
  • Loading branch information
cweagans committed Jan 7, 2022
1 parent 0ff2553 commit f516e49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lint-terraform/install-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ for CERT in ${CA_CERTS[@]}
do
echo "Installing $CERT"
OUT=$ADDITIONAL_CA_CERTS/${CERT##*/}
test 200 == "$(curl -sw %{http_code} $CERT -o $OUT)"
until test 200 == "$(curl -sw %{http_code} $CERT -o $OUT)"; do
echo "retrying"
done
done
for cert in $(find $ADDITIONAL_CA_CERTS -type f -name "*.cer")
do
Expand Down
4 changes: 3 additions & 1 deletion slack-socket/install-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ for CERT in ${CA_CERTS[@]}
do
echo "Installing $CERT"
OUT=$ADDITIONAL_CA_CERTS/${CERT##*/}
test 200 == "$(curl -sw %{http_code} $CERT -o $OUT)"
until test 200 == "$(curl -sw %{http_code} $CERT -o $OUT)"; do
echo "retrying"
done
done
for cert in $(find $ADDITIONAL_CA_CERTS -type f -name "*.cer")
do
Expand Down

0 comments on commit f516e49

Please sign in to comment.