Skip to content

Commit

Permalink
Update for 32 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshastri committed Jan 3, 2024
1 parent 8dae5dd commit 0ace536
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/temurin-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ do
if [[ "${JVERSION}" != "21" ]]
then
DLDEETS32=$(dljdkfileinfo32 $JVERSION ${DIST})
JAVADEETS32=$(curl -s -L -X 'GET' $(echo $DLDEETS32 | jq -r '.links.pkg_info_uri'))
JAVADEETS32=$(curl -s -L -X 'GET' $(echo $DLDEETS32 | jq -r '.links.pkg_info_uri' | head -1))
JAVAFILE32=$(echo $JAVADEETS32 | jq -r .result[].filename)
CHECKSUMTYPE32=$(echo $JAVADEETS32 | jq -r .result[].checksum_type)
DLURL32=$(echo $JAVADEETS32 | jq -r ".result[].direct_download_uri")

SHA256NEW32=$(echo $JAVADEETS32 | jq -r .result[].checksum)

SHA256ORIG32=$(grep -iv "checksumtype\|checksum64" ${TEMFOLDNAME}/tools/chocolateyinstall.ps1 | grep -i checksum | awk -F\' '{print $2}')
URLORIG32=$(grep -i "url64" ${TEMFOLDNAME}/tools/chocolateyinstall.ps1 | head -1 | awk -F\' '{print $2}')
URLORIG32=$(grep -i "url" ${TEMFOLDNAME}/tools/chocolateyinstall.ps1 | grep -i -v "url64" | head -1 | awk -F\' '{print $2}')
fi

echo "$JVERSION $JAVATYPE has SHA256ORIG $SHA256ORIG and SHA256NEW $SHA256NEW"
Expand Down Expand Up @@ -100,16 +100,16 @@ do

if [[ "${JVERSION}" != "21" ]]
then
DLDEETS32=$(dljdkfileinfo32 $JVERSION ${DIST})
JAVADEETS32=$(curl -s -L -X 'GET' $(echo $DLDEETS32 | jq -r '.links.pkg_info_uri'))
DLDEETS32=$(dljrefileinfo32 $JVERSION ${DIST})
JAVADEETS32=$(curl -s -L -X 'GET' $(echo $DLDEETS32 | jq -r '.links.pkg_info_uri' | head -1))
JAVAFILE32=$(echo $JAVADEETS32 | jq -r .result[].filename)
CHECKSUMTYPE32=$(echo $JAVADEETS32 | jq -r .result[].checksum_type)
DLURL32=$(echo $JAVADEETS32 | jq -r ".result[].direct_download_uri")

SHA256NEW32=$(echo $JAVADEETS32 | jq -r .result[].checksum)

SHA256ORIG32=$(grep -iv "checksumtype\|checksum64" ${TEMFOLDNAME}/tools/chocolateyinstall.ps1 | grep -i checksum | awk -F\' '{print $2}')
URLORIG32=$(grep -i "url64" ${TEMFOLDNAME}/tools/chocolateyinstall.ps1 | head -1 | awk -F\' '{print $2}')
URLORIG32=$(grep -i "url" ${TEMFOLDNAME}/tools/chocolateyinstall.ps1 | grep -i -v "url64" | head -1 | awk -F\' '{print $2}')
fi

echo "$JVERSION $JAVATYPE has SHA256ORIG $SHA256ORIG and SHA256NEW $SHA256NEW"
Expand Down

0 comments on commit 0ace536

Please sign in to comment.