Skip to content
Snippets Groups Projects
Commit 8f6956bf authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Differentiate between logging and checking for variables

parent 53408c62
No related branches found
No related tags found
No related merge requests found
......@@ -85,10 +85,16 @@ check_defined() {
}
# Logs a given environment variable to the screen
log_env() {
log_info "${1}=${!1}"
}
# Checks a given environment variable is set (non-zero size)
check_env() {
check_defined "${1}"
log_info "${1}=${!1}"
log_env "${1}"
}
......@@ -396,7 +402,7 @@ set_next_bob_build_number() {
}
check_env PYTHON_VERSION
log_env PYTHON_VERSION
check_env CI_PROJECT_URL
check_env CI_PROJECT_DIR
check_env CI_PROJECT_PATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment