diff --git a/gitlab/functions.sh b/gitlab/functions.sh index a282533847de891f0791577bc8361b492aadfa88..7c5a49dc8f9c68f9d2cfbca8e9deb9c1a2e05552 100644 --- a/gitlab/functions.sh +++ b/gitlab/functions.sh @@ -27,7 +27,7 @@ log_error() { # Checks a given environment variable is set (non-zero size) check_env() { - if [ -z "${!${1}}" ]; then + if [ -z "${!1}" ]; then log_error "Variable ${1} is undefined - aborting..."; exit 1 else