diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce3f4e445b0..40dd608c41a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ cache: - > VERSION="$(sed -r -n '1,/^version/s/^version = "([^"]+)".*$/\1/p' < Cargo.toml)"; if [ "${CI_COMMIT_REF_NAME}" = "nightly" ]; then - COMMIT_REF_SHORT="echo ${CI_COMMIT_REF} | grep -oE '^.{7}')"; + COMMIT_REF_SHORT="$(echo ${CI_COMMIT_REF} | grep -oE '^.{7}')"; DATE_STRING="$(date +%Y%m%d)"; export VERSION="${VERSION}-${COMMIT_REF_SHORT}-${DATE_STRING}"; fi;