diff --git a/spcd.sh b/spcd.sh index b8d7ed1..47c5c23 100644 --- a/spcd.sh +++ b/spcd.sh @@ -3,6 +3,7 @@ # defaults [ -n "${SPCD_BRANCH_RELEASE}" ] || SPCD_BRANCH_RELEASE="main" [ -n "${SPCD_BRANCH_STAGING}" ] || SPCD_BRANCH_STAGING="dev" +[ -n "${SPCD_BRANCH_FEATURE}" ] || SPCD_BRANCH_FEATURE="f" [ -n "${SPCD_DNS}" ] || SPCD_DNS="\ 9.9.9.9 \ " @@ -129,7 +130,7 @@ spcd_set_environment_variables() { fi # check project variables case "${SPCD_PROJECT_BRANCH}" in - "${SPCD_BRANCH_RELEASE}" | "${SPCD_BRANCH_STAGING}") ;; + "${SPCD_BRANCH_RELEASE}" | "${SPCD_BRANCH_STAGING}" | "${SPCD_BRANCH_FEATURE}") ;; *) spcd_error_ci "SPCD_PROJECT_BRANCH" ;; esac [ -n "${SPCD_PROJECT_ROOT}" ] || spcd_error_ci "SPCD_PROJECT_ROOT"