Unverified Commit 860cf938 authored by shmuelsa's avatar shmuelsa Committed by GitHub
Browse files

Merge pull request #557 from datreeio/fix-deploy-rc-script

fix: latest rc tag match linux grep
parents d8509046 62d522ee
Showing with 1 addition and 1 deletion
+1 -1
......@@ -4,7 +4,7 @@ set -ex
MAJOR_VERSION=1
MINOR_VERSION=1
latestRcTag=$(git tag --sort=-version:refname | grep "^${MAJOR_VERSION}.${MINOR_VERSION}.\d\+\-rc" | head -n 1 | grep --only-matching "^${MAJOR_VERSION}.${MINOR_VERSION}.\d\+" || true)
latestRcTag=$(git tag --sort=-version:refname | grep -E "^${MAJOR_VERSION}\.${MINOR_VERSION}.[0-9]+-rc" | head -n 1 | grep --only-matching "^${MAJOR_VERSION}\.${MINOR_VERSION}.[0-9]\+" || true)
if [ "$latestRcTag" == "" ]; then
nextVersion=$MAJOR_VERSION.$MINOR_VERSION.0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment