Skip to content

Commit f847ddc

Browse files
committed
fix: follow redirects for getting node version
1 parent a4d90ab commit f847ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/docker/build-image-ubi9.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NAME_AND_TAG=${1:-$LOCAL_DISCARDABLE_IMAGE}
1313

1414
# This step gets the latest version of node 18 from node.js. It removes the .tar.gz extension and then returns the result.
1515
# It is used when buidling the ubi image in order to download the latest node 18 version and copy its binary.
16-
NODE_18_LATEST_VERSION_TAR_GZ_FILE=$(curl --fail --silent https://nodejs.org/dist/latest-v18.x/SHASUMS256.txt | grep linux-x64.tar.gz | awk '{ print $2 }')
16+
NODE_18_LATEST_VERSION_TAR_GZ_FILE=$(curl -L --fail --silent https://nodejs.org/dist/latest-v18.x/SHASUMS256.txt | grep linux-x64.tar.gz | awk '{ print $2 }')
1717
NODE_18_LATEST_VERSION="${NODE_18_LATEST_VERSION_TAR_GZ_FILE%%.tar.gz}"
1818
NODE_18_LATEST_VERSION_TAR_GZ_FILE_SHASUM256=$(curl --fail --silent https://nodejs.org/dist/latest-v18.x/SHASUMS256.txt | grep linux-x64.tar.gz | awk '{ print $1 }')
1919

0 commit comments

Comments
 (0)