Skip to content

Commit

Permalink
fix: update the regex for new variable notation
Browse files Browse the repository at this point in the history
Signed-off-by: Emin Aktas <[email protected]>
  • Loading branch information
eminaktas committed Sep 4, 2024
1 parent 324aefb commit ec091ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ RUN <<EOF
echo "#################################################"
mkdir /opt/graalvm
# Extract the placeholder (ARCH, ARCH_1, ARCH_2, etc.) from the URL using a regular expression
ARCH_PLACEHOLDER=$(echo "$GRAALVM_DOWNLOAD_URL" | grep -o 'ARCH\(_[0-9]\)\?')
ARCH_PLACEHOLDER=$(echo "$GRAALVM_DOWNLOAD_URL" | grep -o '{{ARCH\(_[0-9]\)\?}}')
FINAL_GRAALVM_DOWNLOAD_URL=${GRAALVM_DOWNLOAD_URL//${ARCH_PLACEHOLDER}/$(get_arch_name $ARCH $ARCH_PLACEHOLDER)}
echo "Downloading [$FINAL_GRAALVM_DOWNLOAD_URL]..."
curl -fL "$FINAL_GRAALVM_DOWNLOAD_URL" | \
Expand Down

0 comments on commit ec091ab

Please sign in to comment.