From ba3ee2b070c2836ee34bb43aae7255f1d15111a7 Mon Sep 17 00:00:00 2001 From: Benjamin Reed Date: Mon, 28 Jun 2021 14:48:57 -0400 Subject: [PATCH] fix version.tag fallback --- .circleci/get-version.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/get-version.sh b/.circleci/get-version.sh index dfbf73e8..d68b93d3 100755 --- a/.circleci/get-version.sh +++ b/.circleci/get-version.sh @@ -11,8 +11,10 @@ VERSION="0" if [ -n "$JQ" ] && [ -x "$JQ" ]; then VERSION="$(jq --raw-output .info.version "${MYDIR}/../src/plugin.json")" -elif [ -e "${MYDIR}/version.tag" ]; then - VERSION="$(cat version.tag)" +elif [ -e "${MYDIR}/../version.tag" ]; then + VERSION="$(cat "${MYDIR}/../version.tag")" +else + echo "unable to parse plugin.json or version.tag -- bailing" fi SNAPSHOT_RELEASE="SNAPSHOT"