Sign in
apache
/
camel-spring-boot-examples
/
refs/heads/fix_kafkaoauth
/
.
/
kafka-oauth
/
containers
/
kafka
/
scripts
/
functions.sh
blob: a59094ecba86a5c5ef758cad7af028988866c91f [
file
] [
log
] [
blame
]
wait_for_url
()
{
URL
=
$1
MSG
=
$2
if
[[
$URL
==
https
*
]];
then
CMD
=
"curl -k -sL -o /dev/null -w %{http_code} $URL"
else
CMD
=
"curl -sL -o /dev/null -w %{http_code} $URL"
fi
until
[
"200"
==
"`$CMD`"
]
do
echo
"$MSG ($URL)"
sleep
2
done
}