Skip to content

Add "-rc" suffix to only-digit version numbers #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ aliases() {
local fullVersion="$1"; shift
local variants=( "$@" )

if [[ "$fullVersion" =~ ^[0-9]+$ ]]; then
# if fullVersion is only digits, add "-rc" to the end (because we're probably in the final-phases of pre-release before GA when we drop support from the image)
fullVersion="$fullVersion-rc"
fi

local bases=()
while [ "${fullVersion%[.-]*}" != "$fullVersion" ]; do
bases+=( $fullVersion )
Expand Down