Update 'check.sh'
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2023-03-11 21:32:44 +01:00
parent ae9da52d83
commit bac005b04f

View File

@@ -13,6 +13,14 @@ cleanup() {
trap cleanup EXIT
CLEAN_EXIT=false
if [ -n "${EVENT_TYPE}" ]; then
if [ "${CI_BUILD_EVENT}" -ne "${EVENT_TYPE}" ]; then
echo "skipping check: CI_BUILD_EVENT is not ${EVENT_TYPE}"
CLEAN_EXIT=true
exit 0
fi
fi
if [ -z "${BASE}" ]; then
echo "the environment variable BASE is not set"
exit 1