Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshastri committed Jan 17, 2024
1 parent 73fe536 commit d8f8289
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/corretto-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ function correttodl {
echo "${MD5NEW} is not the same as ${MD5ORIG} for ${VERSIONNEW}"
echo "Updating file corretto-${PACKAGE}-${JVERSION}/tools/chocolateyinstall.ps1 with the new MD5"
${SED} -i "s@${MD5ORIG}@${MD5NEW}@g" corretto-${PACKAGE}-${JVERSION}/tools/chocolateyinstall.ps1
echo "Updating file corretto-${PACKAGE}-${JVERSION}/corretto${JVERSION}${PACKAGE}.nuspec with the new version"
echo "Updating file corretto-${PACKAGE}-${JVERSION}/corretto${JVERSION}${PACKAGE}.nuspec with the new version - ${VERSIONORIG} to ${VERSIONNEW}"
${SED} -i "s@${VERSIONORIG}@${VERSIONNEW}@g" corretto-${PACKAGE}-${JVERSION}/corretto${JVERSION}${PACKAGE}.nuspec
echo "Updating file corretto-${PACKAGE}-${JVERSION}/tools/chocolateyinstall.ps1 with the new URL"
echo "Updating file corretto-${PACKAGE}-${JVERSION}/tools/chocolateyinstall.ps1 with the new URL - ${URLORIG} to ${DLURL}"
${SED} -i "s@${URLORIG}@${DLURL}@g" corretto-${PACKAGE}-${JVERSION}/tools/chocolateyinstall.ps1

# Section for corretto-${PACKAGE}
if [[ "$JVERSION" == "$BAREVERSION" ]]
then
echo "Updating file corretto-${PACKAGE}/tools/chocolateyinstall.ps1 with the new MD5"
${SED} -i "s@${MD5ORIG}@${MD5NEW}@g" corretto-${PACKAGE}/tools/chocolateyinstall.ps1
echo "Updating file corretto-${PACKAGE}/corretto${PACKAGE}.nuspec with the new version"
echo "Updating file corretto-${PACKAGE}/corretto${PACKAGE}.nuspec with the new version - ${VERSIONORIG} to ${VERSIONNEW}"
${SED} -i "s@${VERSIONORIG}@${VERSIONNEW}@g" corretto-${PACKAGE}/corretto${PACKAGE}.nuspec
echo "Updating file corretto-${PACKAGE}/tools/chocolateyinstall.ps1 with the new URL"
echo "Updating file corretto-${PACKAGE}/tools/chocolateyinstall.ps1 with the new URL - ${URLORIG} to ${DLURL}"
${SED} -i "s@${URLORIG}@${DLURL}@g" corretto-${PACKAGE}/tools/chocolateyinstall.ps1
fi

Expand Down

0 comments on commit d8f8289

Please sign in to comment.