We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50865d1 commit aa3f516Copy full SHA for aa3f516
docker/bin/cluster_up.sh
@@ -6,18 +6,19 @@ source ${DOCKER_BIN}/../.env
6
await_http() {
7
local exit_code
8
local attempt=0
9
- curl -s "$2" > /dev/null; exit_code=$?
10
11
- while [ ${attempt} -lt 5 ]; do
12
- echo "awaiting $1 ..."
+ curl -s "$2" > /dev/null; exit_code=$?
+ while [ "${exit_code}" -ne 0 ] && [ "${attempt}" -lt 5 ]; do
+ echo "awaiting $1..."
13
curl -s "$2" > /dev/null; exit_code=$?
14
-
15
- if [ ${exit_code} -eq "0" ]; then
16
- return
17
- fi
18
let "attempt+=1"
19
sleep 5
20
done
+
+ if [ ${exit_code} -eq "0" ]; then
+ return
+ fi
21
22
echo "$1 readiness test failed aborting..."
23
exit 1
24
}
0 commit comments