From f59ba3da9d968ab5dae9942ea047d7dac5db79ab Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Tue, 11 Sep 2018 11:31:25 +0200 Subject: [PATCH] fix typo in version string (#9516) --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce3f4e445..40dd608c4 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;