Skip to content
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
6 changes: 3 additions & 3 deletions openjdk18.sh → openjdk19.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

set -euo pipefail

cp jdk-18/bellsoft-jdk*.tar.gz images
cp jre-18/bellsoft-jre*.tar.gz images
cp jdk-19/bellsoft-jdk*.tar.gz images
cp jre-19/bellsoft-jre*.tar.gz images

PATTERN="([0-9]+)\.([0-9]+)\.([0-9]+)-([0-9]+)"
if [[ $(cat jdk-18/version) =~ ${PATTERN} ]]; then
if [[ $(cat jdk-19/version) =~ ${PATTERN} ]]; then
echo "${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.${BASH_REMATCH[3]}-${BASH_REMATCH[4]}" > images/version
else
echo "version is not semver" 1>&2
Expand Down