Skip to content

Commit

Permalink
fix: curl with redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
popas90 committed Nov 8, 2024
1 parent f847ddc commit 5d446eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docker/build-image-ubi9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ NAME_AND_TAG=${1:-$LOCAL_DISCARDABLE_IMAGE}
# It is used when buidling the ubi image in order to download the latest node 18 version and copy its binary.
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 }')
NODE_18_LATEST_VERSION="${NODE_18_LATEST_VERSION_TAR_GZ_FILE%%.tar.gz}"
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 }')
NODE_18_LATEST_VERSION_TAR_GZ_FILE_SHASUM256=$(curl -L --fail --silent https://nodejs.org/dist/latest-v18.x/SHASUMS256.txt | grep linux-x64.tar.gz | awk '{ print $1 }')

docker build \
--build-arg NODE_18_LATEST_VERSION="${NODE_18_LATEST_VERSION}" \
Expand Down

0 comments on commit 5d446eb

Please sign in to comment.