check project branch
This commit is contained in:
parent
108c007872
commit
9a9f5b92d7
1 changed files with 5 additions and 2 deletions
7
spcd.sh
7
spcd.sh
|
@ -127,8 +127,11 @@ spcd_set_environment_variables() {
|
||||||
else
|
else
|
||||||
spcd_error_ci "ø"
|
spcd_error_ci "ø"
|
||||||
fi
|
fi
|
||||||
# extra check
|
# check project variables
|
||||||
[ -n "${SPCD_PROJECT_BRANCH}" ] || spcd_error_ci "SPCD_PROJECT_BRANCH"
|
case "${SPCD_PROJECT_BRANCH}" in
|
||||||
|
"${SPCD_BRANCH_RELEASE}" | "${SPCD_BRANCH_STAGING}") ;;
|
||||||
|
*) spcd_error_ci "SPCD_PROJECT_BRANCH" ;;
|
||||||
|
esac
|
||||||
[ -n "${SPCD_PROJECT_ROOT}" ] || spcd_error_ci "SPCD_PROJECT_ROOT"
|
[ -n "${SPCD_PROJECT_ROOT}" ] || spcd_error_ci "SPCD_PROJECT_ROOT"
|
||||||
[ -n "${SPCD_PROJECT_PATH}" ] || spcd_error_ci "SPCD_PROJECT_PATH"
|
[ -n "${SPCD_PROJECT_PATH}" ] || spcd_error_ci "SPCD_PROJECT_PATH"
|
||||||
[ -n "${SPCD_PROJECT_NAME}" ] || spcd_error_ci "SPCD_PROJECT_NAME"
|
[ -n "${SPCD_PROJECT_NAME}" ] || spcd_error_ci "SPCD_PROJECT_NAME"
|
||||||
|
|
Loading…
Reference in a new issue