Merge pull request #617 from ZhifengZhang-CN/0.6.0

format check_ccache.sh
This commit is contained in:
quicksilver 2019-11-29 17:08:29 +08:00 committed by GitHub
commit 8e4c5833fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,17 +57,17 @@ check_ccache() {
fi fi
} }
for BRANCH_NAME in ${BRANCH_NAMES}
do
if [[ "${BRANCH_NAME}" != "HEAD" ]];then
check_ccache ${BRANCH_NAME}
fi
done
if [[ -n "${CHANGE_BRANCH}" && "${BRANCH_NAME}" =~ "PR-" ]];then if [[ -n "${CHANGE_BRANCH}" && "${BRANCH_NAME}" =~ "PR-" ]];then
check_ccache ${CHANGE_BRANCH} check_ccache ${CHANGE_BRANCH}
check_ccache ${BRANCH_NAME} check_ccache ${BRANCH_NAME}
fi fi
for CURRENT_BRANCH in ${BRANCH_NAMES}
do
if [[ "${CURRENT_BRANCH}" != "HEAD" ]];then
check_ccache ${CURRENT_BRANCH}
fi
done
echo "could not download cache" && exit 1 echo "could not download cache" && exit 1