diff --git a/api/build.sh b/api/build.sh index ba160e6ee..2b7f06e5e 100644 --- a/api/build.sh +++ b/api/build.sh @@ -39,8 +39,9 @@ function build_api(){ check_prereq build_api $1 echo buil_complete -IMAGE_TAG=$IMAGE_TAG PUSH_IMAGE=$PUSH_IMAGE DOCKER_REPO=$DOCKER_REPO bash build_alerts.sh $1 +source build_alerts.sh $1 [[ $1 == "ee" ]] && { IMAGE_TAG=$IMAGE_TAG PUSH_IMAGE=$PUSH_IMAGE DOCKER_REPO=$DOCKER_REPO bash build_crons.sh $1 -} \ No newline at end of file +} +echo "api done" diff --git a/api/build_alerts.sh b/api/build_alerts.sh index 88dc24b5e..5a098b70c 100644 --- a/api/build_alerts.sh +++ b/api/build_alerts.sh @@ -41,9 +41,8 @@ envarg="default-foss" check_prereq() { which docker || { echo "Docker not installed, please install docker." - exit=1 + exit 1 } - [[ exit -eq 1 ]] && exit 1 } function build_api(){