diff --git a/cd.sh b/cd.sh index 23c74a8..a85860c 100644 --- a/cd.sh +++ b/cd.sh @@ -63,14 +63,13 @@ cd_set_environment () { CD_PROJECTS_GROUP="$(dirname "${CI_PROJECT_PATH}")" # ci / none else - echo "CI" - exit 3 + cd_error_ci "ΓΈ" fi # - [ "${CD_SERVER_URL}" ] || echo "CD_SERVER_URL" && exit 3 - [ "${CD_PROJECT_BRANCH}" ] || echo "CD_PROJECT_BRANCH" && exit 3 - [ "${CD_PROJECT_NAME}" ] || echo "CD_PROJECT_NAME" && exit 3 - [ "${CD_PROJECTS_GROUP}" ] || echo "CD_PROJECTS_GROUP" && exit 3 + [ "${CD_SERVER_URL}" ] || cd_error_ci "CD_SERVER_URL" + [ "${CD_PROJECT_BRANCH}" ] || cd_error_ci "CD_PROJECT_BRANCH" + [ "${CD_PROJECT_NAME}" ] || cd_error_ci "CD_PROJECT_NAME" + [ "${CD_PROJECTS_GROUP}" ] || cd_error_ci "CD_PROJECTS_GROUP" # CD_PROJECTS_URL="${CD_SERVER_URL}/${CD_PROJECTS_GROUP}" CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}"