avoid issues with preconfigured curl options in npm (#31232)

This commit is contained in:
Ron Rennick 2021-11-23 08:16:05 -04:00 committed by GitHub
parent c69b84f8ec
commit 23f4f1c744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,8 @@ count=0
WP_BASE_URL=$(node utils/get-base-url.js)
printf "Testing URL: $WP_BASE_URL\n\n"
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${WP_BASE_URL}/?pagename=ready)" != "200" ]]
RAWDATA=$(curl -s -o /dev/null -w '%{http_code}' ${WP_BASE_URL}/?pagename=ready)
while [[ "${RAWDATA: -3}" != "200" ]]
do
echo "$(date) - Waiting for testing environment"
@ -23,6 +24,7 @@ do
echo "$(date) - Testing environment couldn't be found"
exit 1
fi
RAWDATA=$(curl -s -o /dev/null -w '%{http_code}' ${WP_BASE_URL}/?pagename=ready)
done
if [[ $count -gt 0 ]]; then