Update amazoncorretto8jdk.sh

This commit is contained in:
Bradley Benkle
2022-03-29 11:23:59 -04:00
parent 579862274a
commit 02435b25ad

View File

@@ -1,7 +1,12 @@
amazoncorretto8jdk) amazoncorretto8jdk)
name="Amazon Corretto 8 JDK" name="Amazon Corretto 8 JDK"
type="pkg" type="pkg"
downloadURL="https://corretto.aws/downloads/latest/amazon-corretto-8-x64-macos-jdk.pkg" if [[ $(arch) == "arm64" ]]; then
appNewVersion=$(curl -s https://raw.githubusercontent.com/corretto/corretto-8/develop/CHANGELOG.md | grep "## Corretto version" | head -n 1 | awk '{ print $4; exit}') downloadURL="https://corretto.aws/downloads/latest/amazon-corretto-8-aarch64-macos-jdk.pkg"
appNewVersion=$(curl -s https://raw.githubusercontent.com/corretto/corretto-8/develop/CHANGELOG.md | grep "## Corretto version" | head -n 1 | awk '{ print $4; exit}')
elif [[ $(arch) == "i386" ]]; then
downloadURL="https://corretto.aws/downloads/latest/amazon-corretto-8-x64-macos-jdk.pkg"
appNewVersion=$(curl -s https://raw.githubusercontent.com/corretto/corretto-8/develop/CHANGELOG.md | grep "## Corretto version" | head -n 1 | awk '{ print $4; exit}')
fi
expectedTeamID="94KV3E626L" expectedTeamID="94KV3E626L"
;; ;;