post_style_errors_on_github.sh: Fix condition that sets $CIRCLE_PR_NUMBER

This commit is contained in:
Kamil Śliwak 2021-01-28 12:35:44 +01:00
parent 66d27f1ac6
commit cd4b667545

View File

@ -4,10 +4,7 @@ ERROR_LOG="$1"
function report_error_to_github
{
if [[ $CIRCLE_PR_NUMBER != "" ]]
then
CIRCLE_PR_NUMBER="${CIRCLE_PULL_REQUEST//[^0-9]/}"
fi
[[ $CIRCLE_PR_NUMBER != "" ]] || CIRCLE_PR_NUMBER="${CIRCLE_PULL_REQUEST//[^0-9]/}"
if [[ $CI == "true" ]]
then