From ec5b6714e0016a8d51f54644ab0c2a53643f89ed Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Mon, 4 Jul 2022 22:15:08 +0200 Subject: [PATCH] chore(build): fixing api build script Signed-off-by: rjshrjndrn --- api/build.sh | 5 +++-- api/build_alerts.sh | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(){