Skip to content
Snippets Groups Projects
Commit 63dcbd6c authored by Lukas Werner's avatar Lukas Werner
Browse files

Added error function to config.sh

parent ec8f5f85
No related merge requests found
......@@ -8,6 +8,12 @@ TXT_GREEN="\e[32m"
TXT_CLEAR="\e[0m"
TXT_BOLD="\e[1m"
function error {
: "${RV:=${2:-$BUILD_FAILURE_EXIT_CODE}}"
echo -e "${TXT_RED}${TXT_BOLD}$1${TXT_CLEAR}" >&2
return "$RV"
}
[ -z "${CUSTOM_ENV_AUTH_USER:+x}" ] && error "AUTH_USER CI/CD variable has not been set."
[ -z "${CUSTOM_ENV_AUTH_KEY:+x}" ] && error "AUTH_KEY secret CI/CD variable has not been set."
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment