Skip to content

Commit

Permalink
fix wrong match
Browse files Browse the repository at this point in the history
  • Loading branch information
abriko committed Aug 26, 2023
1 parent ee32399 commit 024e7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ k8s_api_call() {
curl -i -X "${METHOD}" --cacert "${CA_FILE}" -H "Authorization: Bearer $TOKEN" -H 'Accept: application/json' -H "Content-Type: ${CONTENT_TYPE}" https://${APISERVER}${URI} ${ARGS} -o ${RES_FILE}

cat ${RES_FILE} > /dev/stderr
local STATUS_CODE=$(cat ${RES_FILE} | grep 'HTTP/' | awk '{printf $2}')
local STATUS_CODE=$(cat ${RES_FILE} | grep 'Connection established' | awk '{printf $2}')
add_to_report "$(cat "${RES_FILE}")"
rm -f "${RES_FILE}"
echo ${STATUS_CODE}
Expand Down

0 comments on commit 024e7eb

Please sign in to comment.