Skip to content

Commit

Permalink
Fix RC-skipping code for releases without RCs (like 3.7.19)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Oct 3, 2019
1 parent eba1a3a commit 4dc7aeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ for version in "${versions[@]}"; do
if [ "$rcVersion" != "$version" ] && [ -e "$rcVersion/$variant/Dockerfile" ]; then
# if this is a "-rc" release, let's make sure the release it contains isn't already GA (and thus something we should not publish anymore)
rcFullVersion="$(git show HEAD:"$rcVersion/$variant/Dockerfile" | awk '$1 == "ENV" && $2 == "RABBITMQ_VERSION" { print $3; exit }')"
if [[ "$fullVersion" == "$rcFullVersion"* ]]; then
latestVersion="$({ echo "$fullVersion"; echo "$rcFullVersion"; } | sort -V | tail -1)"
if [[ "$fullVersion" == "$rcFullVersion"* ]] || [ "$latestVersion" = "$rcFullVersion" ]; then
# "x.y.z-rc1" == x.y.z*
continue
fi
Expand Down

0 comments on commit 4dc7aeb

Please sign in to comment.