This commit is contained in:
10
check.sh
10
check.sh
@@ -9,10 +9,18 @@ cleanup() {
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user