Skip to content

Commit

Permalink
fix version.tag fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Jun 28, 2021
1 parent 6eae175 commit ba3ee2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/get-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ba3ee2b

Please sign in to comment.